摘要:
Hibernate 注解 @OneToOne 时候,出现以下错误,经调试,发现 注解要么全部放在字段上,要么全部放在get方法上,不能混合使用! org.hibernate.MappingException: Could not determine type for: com.oto.entity. 阅读全文
posted @ 2016-03-22 14:09
慕童
阅读(1279)
评论(0)
推荐(1)
摘要:
1 /** 2 * hibernate 工具类 用来初始化hibernate 3 * 4 * @author Home 5 * 6 */ 7 public class HibernateUtil { 8 9 private static SessionFactory sessionFactory; 10 private static Sess... 阅读全文
posted @ 2016-03-22 10:44
慕童
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号