Java – should I upgrade / migrate hibernate 2.5 to hibernate 3.0 or upgrade directly to the latest stable version?

I have an application using java se 5 and Hibernate 2.5 I have to upgrade / migrate to Java 6 and later hibernate What is the best strategy?

Should I upgrade directly to the latest stable version (current: 3.6), or is it more meaningful to upgrade to 3.0?

Does such a migration require a lot of effort?

I don't have hibernate experience yet, but I have used TopLink JPA 1.0 in my project Can you give me some tips? Thank you

Best wishes, kevana

Solution

It depends If you will use Java EE, don't disturb the hibernate version and focus on JPA 2.0 Hibernate will only be an implementation of JPA If you really need some hibernate specific functions, please check the version according to your as implementation

If you don't use Java EE, if I plan to deploy my application in a few months, I will use hibernate 3.6, or if I plan to deploy the application to production sometime next week, I will use 3.5

The basic idea is to use the latest GA when you put it into production. In this way, you can ensure that you can use the "supportable" version for a long time

It is also worth mentioning that vendors do not always support community versions In this case, you will not be able to get a red hat for hibernate 3.5 or 3.6 support contract If you need support, you must choose any version they officially support

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>