Hello,
I have a List<Identifiable> which is really a concrete colletion class
created by open jpa or hibernate (so I cant modify it)
of objects of class MyClass which implements Identifiable
and I want to marshall it using jibx
I have looked at the mailing list and tutorials on the jibx website but
havent found the answer yet.
I have
interface Identifiable{
public Long getId();
public void setId(Long id);
}
class MyClass implements Identifiable
{
...
}
I want to create the xml:
<list>
<myclass id="1">toString result 1</myclass>
<myclass id="2">toString result 2</myclass>
<myclass id="3">toString result 3</myclass>
</list>
The element content is the result of the toString method.
I dont want to write a wrapper class for every possible generic list as
I will have many classes
I hope they can be handled in a generic way.
I only want to output the results (how can I specify an output only
binding)
Can someone please help out with the bindings.xml file I should use.
Thanks in advance.
Andy Bailey
------------------------------------------------------------------------------
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users