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...

Note: 
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
[http://community.jboss.org/docs/DOC-17392]

Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128]
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to