Monday, September 26, 2005

 

Upgrading from Hibernate2 -> Hibernate3

I decided to upgrade to hibernate3 because of many reasons. One of the reasons was that Hibernate3 offers a cleaner API with less redundencies. Hibernate3 also supports delete and update support via Query interface.

1) Change packages in your source code as follows:
net.sf.hibernate -> org.hibernate
net.sf.hibernate.expression -> org.hibernate.criterion

2) If you have any log4j configuration file (typically this file is called log4j.properties and resides in the classes directory) has entries for the package net.sf.hibernate, change it to org.hibernate.
Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?