This is my current project structure:
pom.xml /src /main /resources hibernate.cfg.xml /META-INF persistence.xml
I have very similar configuration parameters in both files ( hibernate.cfg.xml and persistence.xml ), which looks strange, but this is what I saw in many online examples and tutorials. I cannot understand why I need to have two files. Is it possible to work with one? Please explain.
ps. For example, should hibernate.dialect be declared in both files, or is one enough? If so, which one to use?
java maven-2 hibernate
yegor256 Sep 27 '10 at 20:18 2010-09-27 20:18
source share