This one time, at band camp, Ebersole, Steven said:

ES>We aren't actually generating anything from our Castor setup yet.  Right now
ES>we are only trying to get Castor to load pre-existing database rows.  So the
ES>key generation "shouldn't" be an issue, but thanks for the heads-up; I'll
ES>definitely keep a close eye on that when we start trying to persist.

I think that you're missing my point here. In an earlier message
you stated that you were getting an exception stating that identity
changes were not allowed. I wonder if the key-generator is trying
to assign a new id to the object, hence the exception.

ES>Another strange thing I just noticed: I have been using the jar marked as
ES>castor.0.9.3.jar  I just tried to replace that with castor.0.9.3.9.jar to
ES>see if it would correct any of these issues.  However, the new jar complains
ES>about these collection joins saying it cannot find the appropriate set/add
ES>methods.  I was using collection="collection" in the mapping for these
ES>joins, and then coding the object's get/set attribute as java.util.List.  It
ES>seems like that is what the new jar does not like.

You are correct. The object types must be of java.util.Collection
if in the field mapping you state that the collection type is a
collection. I'm not aware of what may have changed between 0.9.3
and 0.9.3.9 to have caused this to be enforced now. I thought that
Castor should have been enforcing this all along.

ES>Attached are the three classes directly invloved; please let me know if you
ES>need to see others.  Also, I am using interfaces in front of the classes for
ES>the UI to use.  These aren't attached.  Let me know if it would be
ES>beneficial to have them also.

I didn't look at these classes much. The only other thing that I
can think to tell you is that Castor *only* support bi-directional
relationships. It does not currently provide support for uni-directional
relationships. For example, if A contains a relation to B, then B
must contain a relation to A. See the examples in src/examples/myapp
for more info.

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

Reply via email to