users@jaxb.java.net

Re: How can I persist the content of "xsd:any" tag ?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Tue, 3 Jul 2007 01:41:15 +0200

Hi.

My question is : how can I store the content of vendorExtension element into
> the database. There can be as many element as the user want under this
> element and if I try this code with just.


EJB3 can't handle this "as is" as it does not support heterogeneous
collections. You have to convert the contents into something mappable by
EJB3 like strings or serializables.

If you wish you may send me your schemas and I'll run Hyperjaxb3 over them.
Hyperjaxb3 is a JAXB plugin which adds EJB3 annotations to the generated
code. It is also capable of adapting complex cases like yours.

The 0.2 version is ready to be released, we're working on the documentation.

Bye.
/lexi