IllegalStateException with Hibernate 4 and ManyToOne cascading
I had the same problem, and this is what I found: The merge method traverses the graph of the object that you want to store, and for each object in this graph it loads it from the database, so it has a pair of (persistent entity, detached entity) for each object in the graph, where … Read more