Yes, and it works pretty well. I'm doing exactly that and I have about 20
tables/classes. The only catch I found is that bidirectional relationships
are not restaured when converting from XML->java, so you have to do that by
hand. There is an example of code on my blog at 
http://guillaumeradde.blogspot.com/2008/01/xml-java-db.html
http://guillaumeradde.blogspot.com/2008/01/xml-java-db.html 

Hope that helps,

Guillaume


Boring, Jeff W (N-Viper) wrote:
> .
> Is it possible to use the same class for JPA and JaxB? We have a large
> graph and I'd hate to instantiate 2 object graphs. Is this what the XML
> column mapping is for? Sorry, I'm new to JPA and JaxB and just need some
> basic information. Is there any other documentation about this other
> than the section in the user manual on the XML column mapping?
> 
>  
> 
> Thanks for your help,
> 
>  
> 
> Jeff
> 
>  
> 
> Jeff W Boring
> 
> JSF ALIS DM
> 
> Lockheed Martin 
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Combining-JPA-and-Jaxb-tp14445623p14972570.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to