Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Update manytomany results in duplicate key exception
Update manytomany results in duplicate key exception [message #629336] Mon, 27 September 2010 16:03 Go to previous message
dreske Missing name is currently offline dreske Missing name
Messages: 17
Registered: August 2010
Junior Member
Hello,

I have a bi-directional many-to-many relationship (User -> Course).
If I add a course to the users courses list and then add the user to the courses users list, I get a duplicate key exception.

If I only add the user to the courses users list, the users courses list is not updated til I manually call refresh for the user?

Is this the right way?
I've read, that I allways should update both sides of the relationship. But how?

thanks
Dirk
 
Read Message
Read Message
Read Message icon7.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic:(no subject)
Next Topic:How can I get count of distinct left join subquery?
Goto Forum:
  


Current Time: Fri May 24 05:38:51 EDT 2013

Powered by FUDForum. Page generated in 0.01656 seconds