users@jaxb.java.net

Re: Storing JAXB structured XML in Oracle

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Wed, 16 May 2007 11:05:45 -0400

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
>
>