![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
Poulyield
这个作者很懒,什么都没留下…
展开
-
hibernate ExceptionInInitializerError java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
我的错误定位到Session session = HibernateUtil.getSessionfactory().openSession();这条语句,然后排查了下错误,发现是hibernate.cfg.xml配置文件的<mapping class="xxx"/>出错了,就查找这个实体类是否哪里写错了,发现@OrderBy(value="email desc")写成@OrderBy...原创 2019-11-22 18:34:23 · 144 阅读 · 0 评论 -
hibernate NullPointerException internal.SessionImpl.getEntityDescriptor(SessionImpl.java1504)
当执行hibernate程序遇到这个错误,是因为获取SessionFactory的方法错了,我用的是hibernate6.0,之前获取SessionFactory的工具类是: public class HibernateUtil { private static final SessionFactory sessionFactory; static{ ...原创 2019-11-11 12:19:07 · 126 阅读 · 0 评论 -
Myeclipse15 Couldnot initialize class org.hibernate.console.ConfigurationConsoleRepositoryExtManager
在myeclipse2015编译运行hibernate项目出现如图下错误: 是因为没有安装jboss tools插件 点击help->install from Catalog...打开Eclipse Marketplace,搜索jboss tools再点击install即可安装 如果没有Eclipse Marketplace,要先安装Marketplace。 安装完jboss t...原创 2019-11-10 19:38:55 · 293 阅读 · 0 评论