Discussion:
[jboss-user] [JBoss Tools] - Is it enough to set up Hibernate plugin to get all libraries?
Elena Veretilo
2013-02-25 16:15:18 UTC
Permalink
Elena Veretilo [https://community.jboss.org/people/ElenaVeretilo] created the discussion

"Is it enough to set up Hibernate plugin to get all libraries?"

To view the discussion, visit: https://community.jboss.org/message/799415#799415

--------------------------------------------------------------
Hi!

I am very newbie with Hibernate, so I have one small question.
I installed the hibernate tools to Eclipse Helios by Help - Install New Software and I put the path - http://download.jboss.org/jbosstools/updates/stable/helios/ http://download.jboss.org/jbosstools/updates/stable/helios/.

I managed to create hibernate configuration and Hibernate code Generation. But have two troubles - first - in the created files there are a lot of error -  couldn't find org.hibernate.SessionFactory. And second - couldn't load hibernate annotatoins while create configuration.

My question - is it not enough to upload the hibernate tools to get all the hibernate needed libraries?  What should I do to make my web project see the hibernate libraries? Should I point to some hibernate tools lobraries or should I download them and put to the project/WEB-INF/library?

And also what to do with missing annotations?

Thanks for help)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799415#799415]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Denis Golovin
2013-02-25 20:21:54 UTC
Permalink
Denis Golovin [https://community.jboss.org/people/dgolovin] created the discussion

"Re: Is it enough to set up Hibernate plugin to get all libraries?"

To view the discussion, visit: https://community.jboss.org/message/799452#799452

--------------------------------------------------------------
My question - is it not enough to upload the hibernate tools to get all the hibernate needed libraries?  What should I do to make my web project see the hibernate libraries? Should I point to some hibernate tools libraries or should I download them and put to the project/WEB-INF/library?
In JBoss Tools 3.2.1 for Helios it is not enough. Usual approach for hellos release is download required hibernate libraries, create Eclipse User Librariy(ies) and add them to the project trough Java Build Path.
And also what to do with missing annotations?
For Hibernate 3.x download corresponding hibernate-annotations lib and add it to Java Build Path. For hibernate 4.x it library with annotation classes is included in hibernate distribution archive.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799452#799452]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-02-26 07:56:54 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: Is it enough to set up Hibernate plugin to get all libraries?"

To view the discussion, visit: https://community.jboss.org/message/799531#799531

--------------------------------------------------------------
You can also install a JBoss 7 server and use that for your dynamic web or jar project and you should get the JPA classes available to you.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799531#799531]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Loading...