This one time, at band camp, Castor Casy said:

CC>
CC>Have Department and Book objects, in a DepartmentBook object. When
CC>inserting a new DepartmentBook, castor is trying to insert a Department,
CC>a Book and a DepartmentBook object. I want to insert DepartmentBook alone.
CC>I am sure there  is no problem in mapping.
CC>

If I understand your explanation correctly, the DepartmentBook object
looks like so:

    class DepartmentBook
    {
        Department department;

        Book book;

        ...
    }

Therefore, due to the following conditions:

    1) The DepartmentBook object contains an instance of the Department
       object and an instance of the Book object, and

    2) I'm guessing that the mapping descriptor contains info about the
       three objects (Department, Book and DepartmentBook)

Castor will attempt to persist all three objects.

Please post the mapping descriptor for analysis.

Bruce
--

perl -e 'print unpack("u44", "\?0G)U8V4\@4VYY9&5R\"F)R=6-E0&)S;GED97(N;W)G\"\@\`\`");'

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

Reply via email to