Hi Bill,
Check out:
https://hyperjaxb2.dev.java.net/
I think this is specific to Hibernate, though.
-- Ed
William Saxton wrote:
> Hi all,
>
> Fairly new JAXB user here with a question.
>
> What is the best way to store XML data handled by JAXB objects?
> Currently, I marshal the object to a string, use XMLType.createXML to
> convert it to an XMLType, then store it as an object using
> stmt.setObject(). Is this the right approach?
>
> I also have the context path somewhat "hard-coded" in the java code in
> order to marshal/unmarshall the data. Do you think I should also save
> this in the database along with the XML or read it from a config file?
>
> Thanks.
>
> -Bill
>
>