Java Reference
In-Depth Information
accessing a relational MySQL Database Using hibernate
try it out
In this example, you will be able to access a relational MySQL database using Hibernate.
1.
release
4.3.5.final
is installed in the directory
C:\hibernate-release-4.3.5.Final
.
2.
Now add the Hibernate JARs to the build path of the project. Right-click the project, choose
Properties Java Build Path Add Library. Define a User Library called
MyHibernateLibrary
and add the files from
C:\hibernate-release-4.3.5.Final\lib\required
, as shown in
Figure 9-12.
figure 9-12
3.
Make sure to also add the
mysql-connector-java-5.1.30-bin.jar
to the Build Path. Your
Eclipse project now looks like Figure 9-13.
figure 9-13
Search WWH ::
Custom Search