I
I
Ivan Balaksha2014-08-16 16:06:38
Java
Ivan Balaksha, 2014-08-16 16:06:38

Hibernate ignores the settings and works with a different base. What could be the problem?

I just started to deal with Hibernate, created a database in MySQL test, registered everything in hibernate.cfg.xml (I wrote / test in the url before the database). Wrote a couple of tests, everything seems to work. When I change the url to the base, hibernate does not react at all.
here is a link to github with sources
https://github.com/tagantroy/HibernateExample

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NightFantom, 2014-08-16
@NightFantom

Tell me, how and on what do you launch the project? How do you collect?

V
Vladimir Smirnov, 2014-08-18
@bobzer

Regardless of which build system you choose, they all compile their classes into some sort of separate folder, and usually store extra resources like hibernate.cfg.xml in that folder as well. The easiest way is to search the file system for the hibernate.cfg.xml file and see its contents wherever it is found. I think there is a version with the URL "/test"...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question