java - Hibernate artifact id "hibernate-core" with version 4.3.5.Final and artifact id "hibernate" with version 3.2.3.ga -


i following tutorial start hibernate, there note given add hibernate artifact id as

     <dependency>     <groupid>org.hibernate</groupid>     <artifactid>hibernate</artifactid>     <version>3.2.3.ga</version> </dependency> 

and lot of other dependency , dom4j, javax.transaction (jta) etc..

but latest hibernate version "4.3.5.final"(gathered hibernate.org), , artifact id given there :

     <dependency>     <groupid>org.hibernate</groupid>     <artifactid>hibernate-core</artifactid>     <version>4.3.5.final</version> </dependency> 

with no dependencies add in pom.xml of sample

when compiled project tutorial way, in .m2 directory org.hibernate got created , has needed sample run.

i deleted in repo , compiled using hibenate-core (given on hibernate.org), necessary things downloaded , sample ran too.

i tried see pom.xml of hibernate-core in .m2, , noticed dependencies things dom4j , transactions added here. (hence may no need add in sample's pom.xml). noticed trasaction api used form jboss.spec.javax.

i confused that, correct way? hibernate-core latest way of doing things? , differences "hibernate" artifact? why things transaction api implementation changed java.transaction org.jboss.spec.javax.transaction?

where can find these things in details?

as of hibernate 4 maven artifacts separated separate modules instead of single jar. recommended way of hibernate 4 use hibernate-core artifact. please read section 1.1.1 on manual: http://docs.jboss.org/hibernate/orm/4.3/manual/en-us/html_single/#tutorial-firstapp-setup


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -