Bruce:
What I need is to add business logic, so I�m going to add extra classes.
I didn�t see an example about it. I read about it in java.sun, but with no
samples.
Thank you.
______________________________________________
Ing. Gustavo Rafael Pistoia
CDA Inform�tica S.A.
TE: 4343-5200.
Int (6329) 4566.
Bruce Snyder
<ferret@frii. Para: [EMAIL PROTECTED]
com> cc:
Asunto: Re: [castor-dev] JDO & Models
12-02-02
05:47 PM
Por favor,
responda a
castor-dev
This one time, at band camp, Gustavo Pistoia said:
GP>
GP>Bruce:
GP> 1) I generate my classes from a xsd file. Just data objects. Then I set
GP>the relations with the fields of my database.. But all this objects obly
GP>contains attributes, no logic. I want to know where to put the logic. I
GP>guess I need lot of extra classes.
OK, this is still not completely clear to me. Let me try to understand
what it is you need to know. So you're looking for a place to put
what logic?
a) The client code that makes use of the object model? If
this is what you're looking for, see src/examples/jdo/Test.java.
b) Or are you looking for a place to put additional business logic
for the object model? If this is what you're looking for, then yes,
you'll need to create extra classes. I know of no method of generating
custom logic using the SourceGenerator.
GP> 2) I found a bug in the source generation. Can I send you the fixed
code?
I'm a committer on the Castor JDO side of the house. I have far
more knowledge about Castor JDO than I do of Castor XML. But I'm
sure one of the XML guys (Arnaud, Sebastian or Keith) can help you
out. But first, I'm going to copy the contents of a message on the
mailing list about getting code committed to CVS:
----------------------------------------
Due to the amount of work involved, this process can take some time.
In order to check in a patch, we must first completely understand
the patch and what it's trying to achieve. Then we must take the
time to write tests, execute those tests as well as debug any
problems that may arise. In other words, there is a lot more work
involved than just committing the code. Also, the committers for
Castor JDO all work on Castor in their free time. Nobody is assigned
to work on Castor JDO as a full-time job.
If you're truly interested in getting some code committed, and in
a timely manner, I encourage you to write the appropriate test cases
for your code.
I'm simply trying to provide some explanation for the delay with
committing your, or anyone else's, patch(es).
Please post any questions to the list. Not only can we help you by
answering, but you're also helping us understand what we need to
add the docs to help others to better understand the Castor project.
----------------------------------------
BTW, patches should be in a 'diff -u' format.
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
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev