NonUniqueObjectException « Cascade « JPA Q&A





1. NonUniqueObjectException: during cascading persist with jpa and hibernate    stackoverflow.com

I have an entity A with 2 OneToOne relations on a second entity B.

entity   --  @OneToOne(cascade=CascadeType.PERSIST)  -->  entity
   A     -- ...

2. NonUniqueObjectException on cascade    forum.hibernate.org

Newbie Joined: Mon Nov 03, 2003 1:07 am Posts: 14 I am getting a NonUniqueObjectException when I try to delete or save an object. While I know what this error means, I don't understand how this could be happening since my testcase only retrieves the object (by id) from hibernate, initializes the OneToMany, and deletes the object (and cascade delete the ...

3. NonUniqueObjectException on cascading update    forum.hibernate.org

Hi, I am trying to manage an object graph with organisations and organisational units (OU). An organisation has a list of OUs and a OU has a list of child-OUs as well. So, we have a tree that looks like: OU .| .|- OU1 .|- OU2 .......| .......|- OU2.1 All those OUs are in the list of OUs of the organisation. ...