I am using JPA + hibernate + Spring, but looks like the Cascade doesn't work.
Please see the coding, what I expect is, "John" is deleted, "Mary" is added. But I try all javax.persistence.CascadeType, it will NOT give me the result. Then I try to use org.hibernate.annotations.CascadeType, it will always give me syntax error.
Does that tell Hibernate to delete the entity, or to just remove the association between the company and the employee? If you just deleted the Employee, rather than removing it from the list, the data would die. Thoughts?
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads