Hi everyone,
I have a question to the list handling of JiBX. I have a setup with JiBX and
Hibernate and want to read data from the DB into my Java Objects with
hibernate and then write them to XML with JiBX. The problem here results
from the handling of java.util.List. In my binding I use an ArrayList (as I
need to read from XML with that binding as well) as the field type.
Hibernate instantiates the list as a PersistentBag. If I give Hibernate an
ArrayList to write a relation to the DB, it works. Only JiBX does not like
the PersistentBag. Question. Why does the implementation require the
concrete List implementation type for the getter of the property and not
only the List interface? This would enhance flexibility extremely. Or is
there something I missed helping me with that problem?
Thanks
Konrad
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users