使用hibernate annotations应该注意的地方
来源:百度文库 编辑:神马文学网 时间:2024/04/28 02:59:09
以前都是通过配置文件的方式实现,在这个项目中用到了annotations,结果老是出问题,而且有的正常有的不正常。。。找的头都大了。。。后来在网上不断的搜索终于找出问题,就导入的包有问题。。。 import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.Entity;//这是就出问题了哦
@Entity
@Table(name="test_person")
public class Person implements Serializable 上面红色的导包的时候导错了,应该是 import javax.persistence.Entity; 参考:http://apps.hi.baidu.com/share/detail/17437084
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.Entity;//这是就出问题了哦
@Entity
@Table(name="test_person")
public class Person implements Serializable 上面红色的导包的时候导错了,应该是 import javax.persistence.Entity; 参考:http://apps.hi.baidu.com/share/detail/17437084
使用hibernate annotations应该注意的地方
Hibernate Annotations 实战(二) 性能比较
使用getBoundingClientRect需要注意的地方
使用程序化交易系统应该注意的几个问题
恋爱中的美女们应该注意的10个地方
恋爱中的女生们应该注意的10个地方
恋爱中的美女们应该注意的地方
3G使用技巧及应该注意的问题
使用Hibernate的一个完整例子
Hibernate/Spring/Struts架构使用OpenSessionInView的...
装修注意的地方
恋爱中的美女们应该注意的10个地方(MM必看哦!)
人生应该注意的
应该注意的礼仪
男人应该注意的!
ACCESS中使用SQL语句应注意的地方及几点技巧
Hibernate 二级缓存使用
Hibernate 二级缓存使用1
找工作时注意的地方
找工作时注意的地方
配送果篮要注意的地方
2010年单证员考试辅导:使用保函应该注意的问题-单证员考试-考试大
使用MiddleGen产生hibernate的数据库表映射文件
大学生应该去的地方