开发者

OpenJPA: how to make entity use dynamic update, mutable, optimistick lock, etc

开发者 https://www.devze.com 2023-03-13 02:09 出处:网络
I\'m migrating from Hibernate to OpenJPA. And there开发者_StackOverflow中文版 are many entities with annotations like this:

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消