Hibernate Setup

I have always used Hibernate annotations in my old work, but since all of our projects have already been set up, I never studied the mechanism underlying it.

Can someone please give me a brief description of how to set everything up just to get me started?

I am developing in Java using Maven and Oracle 10g Express Edition. My IDE is Eclipse.

+3
source share
2 answers

I would recommend starting with the Hibernate tutorial . Basically, you need to create a Hibernate configuration file in your class path (disabling it in src / main / resources is done with the default project layout of Maven) and then start annotating your data objects. There's also a tutorial for Hibernate with XML configuration .

+3
source

The non-Maven steps for creating a Hibernate project in Eclipse will be: Step 1: add the necessary JARs to configure the Hibernate project Step 2. Add the JAR to the lib folder of your project. Step 3: In addition, I suggest that you study the Hibernate directory structure since you are using it for the first time.

, http://myjavatrainer.com/setup-hibernate-project/

, .

Maven - . Maven - Apache, . Maven . . Java- - Eclipse Maven.

, JAR , Hibernate.

0

Source: https://habr.com/ru/post/1796570/


All Articles