Hallo,
On 07.06.2010 08:45, Jorrit Wortel wrote:
Hi,
At last, I made my project work and I'm now able to generate the descriptor
classes from an XML schema.
However, this project has generated some questions:
- Are the descriptor classes really usefull for the persistence in a
database ?
No, not at all. The persistence classes are to be seen in the context of
XML data bindig only. They basically define the same information
(internally) as if you'd define a mapping file.
If you want to persist any of the generated classes (from the XML
schema), you have two options:
a) Define a JDO-specific mapping for those classes needed.
b) Have a look at the JDO extensions for the XML source generator, where
you will get (limited) JDO descriptor generation for free.
- Is it possible to use the JPA annotations (the ones supported by castor of
course) out of a web application ?
For those annotatios currently supported, yes. As this is work in
progress, it depends how you want to be using those JPA-annotated
classes with Castor JDO. Iow, whether you still want to be using Castor
JDO's API or use the (work-in-progress) JPA provider for Castor JDO.
Every example using the JPA was encapsulated in an EJB.
Sorry, but the context of this statement is not really clear to me.
Regards
Werner
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email