Hi All, Is there any clue how using CascadeType in bidirectional relationship? for example : I have two tables 1 is Customers and second is FormOrder ( owner of relationship)
The problem is when I insert new record in FormOrder which also specify new Customer, this code should be working. ( since this is not default JPA to persist related entity , so that we are using CascadeType.persist)
The fact is annoying me since there are a message "javax.persistence.EntityExistsException: Exception Description: Cannot persist detached object"