File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes org.hibernate.NonUniqueObjectException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.NonUniqueObjectException" Watch "org.hibernate.NonUniqueObjectException" New topic
Author

org.hibernate.NonUniqueObjectException

indu iyengar
Ranch Hand

Joined: Jul 30, 2010
Posts: 115
Hi all, when I started to use relationships, it ends up with different types of exceptions.. please give tell me what is key element and why index as the element in list ?

am using 3 tables..
student (studID primary key),courses(courseID primary key) and student-course(studID and courseID as columns )..

the student can select different courses.
so one student with


mapping file..

when I call session.save(obj).. then

thanks ,
Indu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.hibernate.NonUniqueObjectException
 
Similar Threads
problem in one-to-many mapping
many-to-many where middle table has extra fields
org.hibernate.PropertyAccessException
sequence generator with mysql
java.lang.IllegalArgumentException argument type mismatch