This one time, at band camp, Ross Larner said:
RL>RL>I am a fairly new user to Castor, and I have a basic question I hope someone
could
RL>answer:
RL>RL>
RL>RL>is there a way to have Castor autogenerate the Java classes that implement
RL>Persistent from an XSD?
RL>RL>
RL>RL>For example, the Product.java file that is used in the jdo example - could this
RL>type of file be generated from an XSD using the sourceGenerator? It seems very
similar
RL>to the XML Binding files that are generated by default. I am wondering if anyone
RL>autogenerates the JDO code as well, and if so, how?
RL>RL>
RL>-------
RL>BS>Ross,
RL>
RL>BS>See Castor XML's SourceGenerator:
RL>
RL>BS> http://www.castor.org/sourcegen.html
RL>
RL>BS>It's possible that there may still be some very minor issues with what
RL>BS>it generates and whether it's fully compatible with JDO.
RL>
RL>BS>Bruce
RL>
RL>Bruce, et all,
RL>I was under the impression that the SourceGenerator only generates files for use in
the XML Data Binding part of Castor, nothing for the JDO stuff. After reading the link
you sent, as well as the pdf doc for the Source Generator, I didn't find anything to
refute that. Is there anything that autogenerates the JDO code from an XSD, i.e.
generating the Java classes that implement "Persistent"?
Ross,
The Castor XML SourceGenerator generates Java source code to be used
anywhere. At one time, there were some issues with regard to the
relationships (or something else maybe, I can't recall exactly) it
generated and using the generated code with Castor JDO, but I believe
those issues have since been addressed.
I think that you're under the impression that all of your classes for
use with Castor JDO must implement the org.exolab.castor.jdo.Persistent
interface. This is NOT required with Castor. Please see the question,
'Should my JDO classes implement some special interface?' here:
http://www.castor.org/jdo-faq.html#Technical-questions
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev