导入错误:Org.Hibernate.SessionFactory等

g

我正在做一个学校项目,该项目应该是Hibernate的一个简单的GWT网站。我以前从未使用过Hibernate或GWT,所以对我来说这有点棘手。

首先,我创建了网站,并使用XAMPP建立了数据库。之后,我按照此指南设置了Hibernate:http : //examples.javacodegeeks.com/enterprise-java/hibernate/hibernate-jboss-tools-installation-in-eclipse-mapping-generation-example/

在该示例中,最后要做的是生成代码。代码已生成,但是由于这些原因,我有很多错误

import org.hibernate.LockMode;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Example;

这些导入无法找到,有人知道我所缺少的吗?

提前致谢

萨扬·钱德兰(Sajan Chandran)

您需要将hibernate相关的jar添加到eclipse项目的buildpath中。

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

NoSuchMethodError:org.hibernate.SessionFactory.getCurrentSession()

通过“ sessionFactory”的不满意的依赖;没有可用的'org.hibernate.SessionFactory'类型的合格bean

初始SessionFactory创建失败.org.hibernate.HibernateException:缺少列

Java Spring MVC + Hibernate - sessionFactory“不满意的依赖”错误

Hibernate SessionFactory与Spring LocalSessionFactoryBean

Hibernate SessionFactory与JPA EntityManagerFactory

Hibernate + Spring SessionFactory配置

java.lang.NoSuchMethodError:org.hibernate.SessionFactory.openSession()Lorg / hibernate / classic / Session

Spring 3.1,Hibernate 4,SessionFactory

使用hibernate sessionFactory还是JPAEntityManager?

Hibernate SessionFactory,动态设置TransactionIsolationLevel

Hibernate初始SessionFactory创建失败

获取文件路径-Hibernate SessionFactory

启动 Micronaut 服务器时出错:无法加载 Bean 定义 [org.hibernate.SessionFactory]

Spring MVC的:没有合格类型的豆[org.hibernate.SessionFactory实例]发现依赖

需要类型的bean的org.hibernate.SessionFactory实例“不能被发现

Micronaut数据-没有类型为[org.hibernate.SessionFactory]的bean

春季引导。找不到类型为“ org.hibernate.SessionFactory”的bean

BeanInstantiationException:无法实例化 [org.hibernate.SessionFactory]:涉及包含 bean 的循环引用

无法实例化 [org.springframework.orm.hibernate5.LocalSessionFactoryBean]:工厂方法“sessionFactory”抛出异常

由于在org.hibernate.internal.util.ConfigHelper.getResourceAsStream上的java.lang.NullPointerException,Hibernate 4.3.5 SessionFactory创建失败

无法建立 Hibernate SessionFactory;嵌套异常是 org.hibernate.MappingException:无法实例化 id 生成器

Hibernate sessionFactory的程序化配置需要“ sessionFactory”或“ hibernateTemplate”

Hibernate的Sessionfactory.getCurrentSession()和SessionFactory.openSession()的区别

春季错误-NoSuchBeanDefinitionException:SessionFactory

无法创建sessionFactory object.org.hibernate.boot.registry.classloading.spi.ClassLoadingException:无法加载类[org.sqlite.JDBC]

定义在Hibernate SessionFactory之前启动的Micronaut bean

无法建立Hibernate SessionFactory;嵌套异常

Spring / Hibernate集成中的NPE SessionFactory