I’m migrating from Hibernate to OpenJPA. And there are many entities with annotations like this:
@org.hibernate.annotations.Entity(mutable = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.VERSION).
Is there any way to use these properties in OpenJPA?
I’m migrating from Hibernate to OpenJPA. And there are many entities with annotations like
Share
I’m not going to claim to be a Hibernate expert, but I don’t think you need to use any OpenJPA specific annotations. I’d stick to
@javax.persistence.Entityand@javax.persistence.Version(on your version field).