Questions tagged [hibernate.cfg.xml]

hibernate.cfg.xml is the name of the default config file used by Hibernate.

The file usually contains the list of Hibernate mapping files (HBM) for objects that Hibernate persists. It also contains properties that control the behavior of Hibernate.

83 questions
0
votes
2 answers

Configuring Hibernate for HQL

I am getting the following error to the simplest query: org.hibernate.hql.internal.ast.QuerySyntaxException: is not mapped [] In hibernate.cfg.xml I have the property;
Roam
  • 4,831
  • 9
  • 43
  • 72
0
votes
2 answers

hibernate.cfg.xml of Hibernate

In my Java Project, hibernate.cfg.xml is sitting in the source folder-- \src. So, to be precise, it is a file in the source folder, sitting right next to the source codes. However, Eclipse can't see it. Please see for Hibernate -- object creation…
Roam
  • 4,831
  • 9
  • 43
  • 72
0
votes
3 answers

hibernate.cfg.xml not found (The file actually doesn't exist). Configuration is in dispatcher-servlet

I have configured hibernate in my dispatcher servlet. The program starts fine. But when creating a Configuration object and configuring it by calling the configure() method, the error is thrown: Apr 03, 2013 9:14:58 PM…
h-rai
  • 3,636
  • 6
  • 52
  • 76
0
votes
1 answer

MVC Template Project dont see hibernate.cfg.xml

I'm new at Spring MVC. I'm using STS and I've created Spring MVC Template Project (which uses Maven by default). I'm trying to use Hibernate and i know that in default Java Projects i have to put hibernate.xml.cfg in /src folder. I've read that in…
Andrey Yaskulsky
  • 2,458
  • 9
  • 39
  • 81
0
votes
1 answer

configuring Hibernate with Spring MVC Template in STS

I use STS and i've created MVC template project. I want to use hibernate but i don't know where to put hibernate.cfg.xml. In default projects i just put it in src/ folder. static { try { // Create the SessionFactory from…
Andrey Yaskulsky
  • 2,458
  • 9
  • 39
  • 81
0
votes
1 answer

Hibernate load mapping of personaly class loader

I have a problem with java jdk1.6.0_17 and hibernate . I must open a hibernate session factory but mapping file (mapper-test.jar) is load by a personaly classLoader (URLClassLoader) File map = new…
-1
votes
1 answer

cannot install hibernate(5.6.0) with intellij(m1chip silicon) in java

I try to run hibernate 5.6.0 in java 16 and I am programming with intellij 2021.2 for apple sillicon. When I run it I get this error: log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please initialize the log4j…
-1
votes
1 answer

Why am I getting this error Error accessing stax stream

Error message: Exception in thread "main" org.hibernate.HibernateException: Error accessing stax stream This link did not help me solve my issue. I get the following error.What should I do? Jul 26, 2018 4:44:24 AM org.hibernate.Version logVersion …
1 2 3 4 5
6