How to work with multiple object+

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to work with multiple object+

sembrano
the tutorial say the following  :

Person joe = new Person("Joe", "Walnes");
joe.setPhone(new PhoneNumber(123, "1234-456"));
joe.setFax(new PhoneNumber(123, "9999-999"));

and  I have tried with my data and get :

<prop>
  <description>site date</description>
  <parent>NULL</parent>
  <virtual>1</virtual>
  <visible>0</visible>
  <picture>NULL</picture>
  <help>NULL</help>
  <min__no>1</min__no>
  <max__no>1</max__no>
  <name__format>09jk</name__format>
  <objType>siteData</objType>
</prop>

But I wanan change place of : <objType>siteData</objType>
to be located like this :

<objType>siteData</objType>
 <prop>
  <description>site date</description>
  <parent>NULL</parent>
  <virtual>1</virtual>
  <visible>0</visible>
  <picture>NULL</picture>
  <help>NULL</help>
  <min__no>1</min__no>
  <max__no>1</max__no>
  <name__format>09jk</name__format>
 </prop>

How do I do that?
Reply | Threaded
Open this post in threaded view
|

Re: How to work with multiple object+

sembrano
Actually I solved it already. I only had to reconstruct my objects.