开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜