2 Replies Latest reply on Feb 26, 2013 2:56 AM by maxandersen

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

    elenaveretilo

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

       

      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)

        • 1. Re: Is it enough to set up Hibernate plugin to get all libraries?
          dgolovin

          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.

          • 2. Re: Is it enough to set up Hibernate plugin to get all libraries?
            maxandersen

            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.

            1 of 1 people found this helpful