Hibernate 2.1.6 or 3.x?

We are in the process of revamping our persistence layer from some proprietary orm. Most of our developers are already familiar with hibernate 2 and also its gotchas. So we decided to stay with Hibernate (instead of switching to jpa2 as it means new learning curve etc etc). But the questions is to stick with the 2.x version which we are already using (but mostly simple selects and simple inserts only) or to move to 3.x?

After going through their release docs, there seems to be around 1200+ defects fixed or enhancements made etc. This is just enough for me to move to 3.x. Can someone enlighten us on what we will be gaining if we move to 3.x or what will be problems of staying with 2.x.

Thank you.

Answers


Move to 3.x if you have a chance. Not only because the 2.x is not maintained anymore, but also because 3.x contains a lot of new features (which you may need in the future) and performance improvements. One more thing to consider is that 2.x wasn't designed for modern VMs, so, 3.x contains some optimizations for newer JDBCs and newer VMs. And I didn't even mentioned JPA (and Annotations) support ;-)

I'd say that it's better to spend one or two weeks "learning" about JPA than to stick with Hibernate 2.x, which has no future.


Need Your Help

GridView Event RowCreated it happens after rendereing of controls?

c# asp.net

I need change the value for a Label inside a GridView programmatically.

Javascript - Calculate date 1 year/3 months/1 month ago from current date (dd-mm-yyyy)

javascript jquery date

I have a dropdown box that contains 3 options..monthly, quarterly and yearly. I am trying to populate 2 fields when either of the options are selected. The start date will be the current date, and ...

Ant -> Nant -> Visual Studio 2005 Build

c++ visual-studio-2005 ant nant visual-c++-2005

I am working on a big C++ project. It is building using single Ant script which makes possible to compile the same source targeting more than one platform and compiler.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.