I've been using the ODMG implementation for a while now, and its been very useful. So far, I've been using one-way 1:n relationships, but now I need a few m:n relationships. I've written a test case, and it (kind of) works. I have Course and Lesson objects, each of which has a list of the other.
When I add a lesson to a course, the indirection table is correctly populated, and the List for the course now contains the Lesson, but the lessons list of courses is NOT automatically updated. I realise that there is nothing in the repository_user file that says that the two collections (in course and lesson) are related and may affect each other, so do I have to add the other link in manually? ie. Course course = // find a course Lesson lesson = // find a lesson course.getLessons().add(lesson); lesson.getCourses().add(course); The information in this e-mail is confidential and intended to be solely for the use of the addressee(s) and may contain copyright and/or legally privileged information. If you are not the addressee (or responsible for delivery of the message to the addressee) please e-mail us at [EMAIL PROTECTED] and delete the message from your computer; copying, distribution, use or disclosure of its contents is strictly prohibited. As Internet communications are capable of data corruption no responsibility is accepted for changes made to this message after it was sent. For this reason it may be inappropriate to rely on advice contained in any e-mail without obtaining written confirmation of it. In addition, no liability or responsibility is accepted for viruses and it is your responsibility to scan attachments (if any). Please note that for business purposes, outgoing and incoming emails from and to the company may be monitored and recorded. Mouchel Parkman UK Ltd, Registered in England at West Hall, Parvis Road, West Byfleet, Surrey UK KT14 6EZ Registered No : 1686040 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
