You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by shrimpywu <im...@gmail.com> on 2008/04/02 05:43:09 UTC

Question about mapping a list, and pojo with static properties

Question 1

suppose i have a pojo

public class A {
Integer id;
List l;  // and this list will contain a list pojo B

getter and seter.
}

in the schema.xsd

can i map the pojo A like this

<complexType name="A">
        <sequence>
            <element name="l" type="tns:PojoBs"></element>
        </sequence>
        <attribute xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="id"
type="xsd:int"/>
</complexType>

<complexType name="PojoBs">
        <sequence>
            <element name="b" type="tns:b"></element>
        </sequence>
</complexType>

<complexType name="B">
        <sequence>
            some element
        </sequence>
        <attribute xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="id"
type="xsd:int"/>
</complexType>

and do i need to create a java file for PojoBs???

Second question

if in Pojo B, there is some  properties like this
private static final String value = "abc"

so, i dono`t need to map in the schema.xsd file , right?


-- 
View this message in context: http://www.nabble.com/Question-about-mapping-a-list%2C-and-pojo-with-static-properties-tp16440019p16440019.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org