OpenJPA: how to make entity use dynamic update, mutable, optimistick lock, etc
I'm migrating from Hibernate to OpenJPA. And there开发者_StackOverflow中文版 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 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.Entity
and @javax.persistence.Version
(on your version field).
精彩评论