
hibernate
XB_DL
这个作者很懒,什么都没留下…
展开
-
关于使用Hibernateni逆向工程生成model出现的BUG
严重: Servlet.service() for servlet [jsp] in context with path [/purchasig] threw exception [org.hibernate.LazyInitializationException: could not initialize proxy - no Session] with root cause org.hibern原创 2017-01-09 16:17:09 · 644 阅读 · 0 评论 -
hql语句中要注意的几点
1、在条件查询中,对属性的赋值应该为=:,千万不能写反了@SuppressWarnings("unchecked") public List<TOrder> listUpMoney(int state,float money1){ Session session = null; session = HibernateSessionFactory.getSess原创 2017-01-09 16:34:26 · 377 阅读 · 0 评论