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
1
vote
1 answer

Hibernate: Error activating Bean Validation integration

I can't get hibernate connection worked !! I'm using Hibernate 4.2.1 I Got this error Initial SessionFactory creation failed.org.hibernate.cfg.beanvalidation.IntegrationException: Error activating Bean Validation integration public class…
Rollyng
  • 1,387
  • 2
  • 12
  • 18
1
vote
2 answers

Hibernate configuration for Elastic Beanstalk (AWS)

I am working on a Java application using Hibernate. I would like to deploy it on Elastic Beanstalk (Amazon Web Services) to be able to scale accordingly. RDS is the database I want to use. However, I do not know how to give my configuration settings…
1
vote
1 answer

hibernate.cfg.xml does not find hibernate.properties file

We used to have the hibernate.cfg.xml and hibernate.properties files in the same folder in our Java source folder. Now I moved the hibernate.properties file to another location. How can I make the hibernate.cfg.xml file find the…
user1340582
  • 19,151
  • 35
  • 115
  • 171
0
votes
0 answers

How can use cfg file with hibernate entitymanager

I want to define entities with cfg files for hibernate. My problem is that when I use the entityManager I get the following error @PersistanceContext private EntityManager em; .... var…
0
votes
0 answers

How to load datasource from hibernate.cfg.xml file when launching spring boot app

Intro : My app contains 2 datasource, i used tomcat context.xml to configure them and it's working fine, but now i need to launch the app as a spring-boot application, one of datasource which is declared in hibernate.cfg.xml file doesn't seem to be…
0
votes
1 answer

Unable to solve java.lang.ClassNotFoundException: play.db.jpa.JPABaseStatement

I am trying to configure hibernate orm mapping tool to my java class and using MySQL.When I tried to run the application, I have encountered error on my console logs as Error java.lang.ClassNotFoundException: play.db.jpa.JPABaseStatement. The…
Adesh Patil
  • 1
  • 1
  • 1
0
votes
1 answer

Error executing DDL "create table hibernate_sequence (next_val bigint) type=MyISAM" via JDBC Statement

I am trying to configure hibernate orm mapping tool to my java class and using MySQL.When I tried to run the application, I have encountered error on my console logs as Error executing DDL "create table hibernate_sequence (next_val bigint)…
Adesh Patil
  • 1
  • 1
  • 1
0
votes
1 answer

IllegalArgumentException : Unknown entity in Hibernate xml configuration

I am trying to test the Hibernate @Any mapping. But i am facing a problem : IllegalArgumentException: Unknown entity. I am using hibernate XML based configuration, in a maven project. i have checked this question : Unknown Entity and also this one…
Black Swan
  • 813
  • 13
  • 35
0
votes
1 answer

how to save = charactor in ini or cfg docement?

i want to save magnet link in ini document.Thus,it's inevitable that i have to save "=" charactor in the file.However,python deem "=" charactor a "option to value" ,so python idle returns"configparser.DuplicateOptionError: While reading from…
930727fre
  • 41
  • 2
  • 6
0
votes
1 answer

config.ConfigurationException: Could not locate cfg.xml resource [hibernate.cfg.xml]

I am building a hibernate application that creates, modify, and query tables from a database. The project was running perfectly fine without having this error, when I try to run it now I got this error out of nowhere. The 'hibernate.cfg.xml' is…
0
votes
1 answer

Could not locate cfg.xml resource with hibernate.5.2.2.Final + spring.4.0.6.RELEASE in IDEA 2018.1

I upgraded my Idea from 2017.1 to 2018.1 and I have a Hibernate issue I can't solve... I've searched and it seems there are many problems with this but couldn't figure out what's the solution. So, I'm using hibernate.version 5.2.2.Final,…
WDrgn
  • 521
  • 10
  • 29
0
votes
0 answers

how to save data textbox into file type .cfg

i want save data from textbox c# into file .cfg in the next line. then every time I add it again it will continue to the next line again and again example: In the file there is data like this: a = 1 b = 2 c = 3 and I want to add from the c #…
Fayy
  • 9
  • 7
0
votes
1 answer

Which c3p0 properties I need to use for hibernate pooling?

Which c3p0 properties I must use for Hibernate Configuration? My configuration is as follow: 5 20
Swapnil
  • 115
  • 1
  • 12
0
votes
1 answer

xwiki error: Duplicate query mapping getSpaceDocsName

I finally got nginx setup to proxy to tomcat for me while behind a AWS ALB…but now I see multiple errors when I hit my url for xwiki. Errors at the bottom... This is a clean instance and the database is empty so i feel like this is linked to how the…
TheRedSeth
  • 77
  • 3
  • 9
0
votes
2 answers

Can not load the hbm file in hiberante

I am trying to do the Hibernate tutotial from JBoss web site. Basically it is a very simple application that adds an Event to the DB. There is an org.hibernate.tutorial.domain.Event and an Event.hbm.xml file. The problem is that: regardless of what…
special0ne
  • 6,063
  • 17
  • 67
  • 107