【发布时间】:2011-11-29 06:29:14
【问题描述】:
我用的是hibernate 3.6,发现有这样的注解:
javax.persistence.Entity
org.hibernate.annotations.Entity
javax.persistence.Table
org.hibernate.annotations.Table
为什么hibernate提供了自己的?它是 jpa one 的替代品,还是只是一个补充?我应该(可以)同时使用它们,例如:
@javax.persistence.Entity
@org.hibernate.annotations.Entity
public class User {}
【问题讨论】:
标签: hibernate jpa annotations