Hi,
I got one step further. I'm having a little bit more information in my xml-file
now but still not all individual elements of my ArrayList are saved and the
attributes of the element are not saved, too.
The xml-file looks now so.
- <proj>
<EntitiesList xsi:type="demos-entity"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</proj>^
EntitiesList is a ArrayList and should have in this example two elements.
The mapping file looks so:
<class name="Core.DemosProject">
<field name="F_Entities" collection="arraylist" get-method="getEntitiesList"
auto-complete="true">
<bind-xml name="EntitiesList" node="element">
<class name="org.exolab.castor.mapping.MapItem">
<field name="value" type="java.lang.Object" auto-complete="true">
<bind-xml name="id" type="java.lang.Object" node="element"/>
</field>
</class>
</bind-xml>
</field>
</class>
Any thoughts on this?
Kind regards.
Katja
> Hi
>
> I'm sorry, I'm not using the same thread. My computer broke and I have to use
a
> wired webmail support on a friends computer.
> I posted this question a view days ago
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg17461.html
> I solved the problem by writing a second get-method that gives back a
ArrayList.
> But still I'm doing a mistake in my mapping file because the individuel
> elements of the ArrayList are not saved.
> This is a part of the mapping file:
>
> <field name="F_Entities" collection="arraylist" container="false" get-
> method="getEntitiesList">
> <bind-xml name="EntitiesList" node="element">
> <class name="org.exolab.castor.mapping.MapItem">
> <field name="value" type="java.lang.Object">
> <bind-xml name="id" type="java.lang.Object"
> node="element"/>
> </field>
> </class>
> </bind-xml>
> </field>
>
> And this is a part of the xml-file that is marshaled:
> - <EntitiesListe>
> <demos-entity />
> </EntitiesListe>
>
> 'demos-entity' exist because the class of EntitiesListe has a childclass.
> What am I missing???
>
> Cheers,
> Katja
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev