[jboss-user] [JBoss Tools] - Hibernate mutliversion support

Dmitry Geraskov do-not-reply at jboss.com
Thu Dec 1 17:56:50 EST 2011

Dmitry Geraskov [http://community.jboss.org/people/dgeraskov] created the document:

"Hibernate mutliversion support"

To view the document, visit: http://community.jboss.org/docs/DOC-17392

Hibernate 3 and Hibernate 4 has some major differences. The differences also require different hibernate tools core version. Because of this plugins should know the used version to provide correct support. The option which says hibernate version to plugins is located inside Console Configuration(if you need to change used version for existing console configuration make a double click on it). 
 http://community.jboss.org/servlet/JiveServlet/showImage/102-17392-1-17407/Screenshot1.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/102-17392-1-17407/450-556/Screenshot1.png 
There are JPA Tools wizards: JPA Generate Tables from Entities and Generate Entities from Tables which could work based on the database connection instead of Console Configuration. In this mode it is necessary to set correct Hibernate version:
 http://community.jboss.org/servlet/JiveServlet/showImage/102-17392-1-17408/Screenshot-Generate+Entities.png  http://community.jboss.org/servlet/JiveServlet/downloadImage/102-17392-1-17408/450-339/Screenshot-Generate+Entities.png 
The dialogs could be found in JPA Project: right click on the project->JPA Tools->Generate...

1) There is no way to say Console Configuration which is automatically created for JPA project which Hibernate version to use. So it is necessary to do it manually after the default creation(if you need to use not 3.5 or earlier hibernate)
2) By default version 3.5 is used which means Hibernate 3.5 or earlier is used.

Comment by going to Community

Create a new document in JBoss Tools at Community
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111201/9490f05c/attachment-0001.html 

More information about the jboss-user mailing list