Mattias Campe wrote:
Ralf Joachim wrote:
<snip problems with many-to-many relationship>

Have you had a look a the example shiped with castor source archiv. The
important files for you are in directories 'src/examples/jdo' and 'src/examples/myapp'. See Product and Categorie for a many-many
relationship example.


Thx a lot for pointing me at this example, it was of great help for me. Now I think everything works fine :)!

Sorry, I still seem to have a problem :(. I can succesfully receive a list of all employees belonging to a particular Department, but the reverse failes. So finding out to which departments an Employee belongs causes problems, it even seems to modify the tables :(.


I have a solution, but I don't know if it is a good one: I would make to tables: next to category_prod, I would also make a table prod_category (+add this to the mapping), which would (I think) solve my problem. It's only, this doesn't seem very elegant to me :(.

Regards,
Mattias

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




Reply via email to