Thanks, I looked at the example and got my code working. 

The part I missed out was that both student and course have to be
persisted (with the create method of Database). I thought maybe that
creating a student object, adding a course to it and persisting only the
student object would result in that the courses also was persisted by
Castor (cascading).

Is there some way of doing that in Castor? Or is that dependent
object?    

BTW: I got the debug output to work. It really helps.


On Wed, 2003-04-02 at 01:24, Bruce Snyder wrote:
> This one time, at band camp, Per Thomas Jahr said:
> 
> PTJ>I have a N:M relationship between two classes (student, course). When I
> PTJ>create a new student object, I also add a course to the students vector
> PTJ>of courses. But when I commit the student object nothing is written to
> PTJ>the many-table. And there is no error from castor (I've not managed to
> PTJ>turn on verbose/debug mode). 
> PTJ>
> PTJ>Great if someone could give me some hints for where to look for bugs.
> 
> Start by taking a look at the JDO examples in src/examples/myapp and
> src/examples/jdo. Understand how it works and how it's objects are
> constructed. Then compare that to your own situation to track down where
> the problem lies.
> 
> Bruce
> -- 
> perl -e 'print unpack("u30","<0G)[EMAIL 
> PROTECTED]&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
> 
> 

Thanks

Per Thomas Jahr

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to