Alvin Bunk

Alvin's Blog.

Hibernate (ORM)

Recently I have been learning about Hibernate since it has become so popular. Hibernate provides object persistence, which is Object Relational Mapping (ORM); specifically from Java to a RDBMS.

I went through the tutorial at Master the Boss (reference to JBoss) here [http://www.mastertheboss.com/quickstart-tutorials-hibernate/jpa/hibernate-tutorial-with-eclipse], but as I went through it, I noticed quite a few problems. This tutorial is quite old and certainly needs updating. Notice the MySQL grant command has changed; It should now be [grant all privileges on *.* TO ‘hibernate’@’localhost’;]. Logging should use the “jboss-logging-3.1.0.GA.jar” file.

There are other things that need to be fixed in order to compile and deploy the application; however, that should be straight forward for most people familiar with Java.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: