replace « Entity « JPA Q&A





1. JPA 2.0 / Hibernate and "orphanRemoval": Just replacing an entity does not remove the old one    stackoverflow.com

I have question regarding JPA 2.0, Hibernate and "orphanRemoval". First my setup:

  • Spring 3.0.5.RELEASE
  • SprnigData JPA 1.0.1.RELEASE
  • Hibernate 3.5.2-Final
  • DBMS: PostgreSQL 9.0
I have two rather simple entity classes, "User" and "AvatarImage", A "User" has an "AvatarImage", ...