|
|
|
|
|
by roberto56
4476 days ago
|
|
Even yesteryear's Java EE does not require the configuration you mention. See e.g. this example: http://jdevelopment.nl/minimal-3tier-java-ee-app-xml-config or this one: http://henk53.wordpress.com/2012/04 Specifically you don't need to create a schema, xml mapping and POJO model. In most cases you ONLY need the POJO model. The XML mapping is almost never needed and the schema (DB structure) is generated automatically from this POJO model. Hibernate specific config is certainly not the norm to have, especially not in its own file. At most you may want to set one or two attributes in the Java EE/JPA standard persistence.xml file. You also rarely need any GlassFish specific config. It exists, but needing it is the exception rather than the rule. I wonder how you can talk about both hibernate and GlassFish configs btw. GlassFish ships with EclipseLink, so you don't need hibernate as well (they both implement JPA and will even conflict when used together). |
|