hibernate 4.1 @org.hibernate.annotations.Entity()

2025-03-23 09:35:24
推荐回答(2个)
回答1:

使用@javax.persistence.Entity代替org.hibernate.annotations.Entity
hibernate 4.1里有单独的@DynamicInsert注解、@DynamicUpdate注解等。

回答2:

javax.persistence.Entity 替换 org.hibernate.annotations.Entity