xml « Default « JPA Q&A





1. JPA default persistence unit    stackoverflow.com

I get exception "There is no default persistence unit in this deployment." can I somehow mark unit as default?(I have only one persistence unit, so Id rather not call it by ...

2. Why does hibernate not find properties when I have hibernate.cfg.xml in my default package classpath?    stackoverflow.com

I am having a bitch of a time getting this simple application working. I've got a configuration file in my default class path, using annotations with the correct class entries in ...

3. Why isn't hibernate.cfg.xml in src/main/config by default?    stackoverflow.com

I was just reading the Maven Standard Directory Layout (because that's what I do on Friday nights) and it seems that config files should be in src/main/config. But Hibernate, by default, ...

4. what is the default location of hibernate.cfg.xml    coderanch.com

The question gets asked alot in here. Do a quick forum search and you'll find lots of people in the same shoes as you. If you have folder such as \source that all your classes and packages are in, you typically put the hibernate-config.xml file in there. But remember, at runtime, it needs to be moved to your runtime classpath. Build ...

5. Rename log4j.xml to default-log4j.xml    forum.hibernate.org

Hi, I have two projects: - Project A which encapsulates all the hibernate stuff - Project B which uses project A's to get access to the db using A's business objects and DAOs Now I want Project A to have a default config for log4j -> default-log4j.xml which will be loaded if B does not has a log4j.xml in it's path. ...

7. set hibernate.cfg.xml default location    forum.hibernate.org

The reason why i don't use the other configure is that I'm writing test classes. I need to use a test database therefore I need to use different cfg. The problem is, all my real code use the default hibernate configuration file, so If I need to make the test work with the test database I need to configure hibernate to ...