What is the difference between sleeping 2.X and sleeping 3.0

can someone explain to me the exact difference between sleeping 2.X and hibernate 3.0 i couldn't understand the same

thank

+3
source share
2 answers

Usually a version upgrade includes more features and bug fixes. Here is a 2-> 3 hibernation migration guide that should give you an idea.

http://community.jboss.org/wiki/HibernateCoreMigrationGuide30

You will see that they have done things such as throwing all exceptions, adding some methods to places, outdated some methods in places, etc.

+6
source

Some of the key points of Hibernate 2.x V Hibernate 3.x:

Hibernet2.x Hibernet3.x,   .  Hibernate 3.0 Hibernate 2.1.  , Hibernet3.0,   , .   Hibernate 2.x Hibernate 3.x   .
Hibernate3.x Hibernet2.x:

API:

Hibernate3 org.hibernate
  net.sf.hibernate. ,  Hibernate2 Hibernate3  .   , Hibernate3   org.hibernate.classic.   HibernateException Hibernate   Hibernate3 .   Hibernate2, Hibernate3   ParameterizedType,   .  Hibernate3.x Blob Clob,   Blob Clob , ,   merge(). Hibernate2.x   . :

Hibernate2.x , lazy = "true", Hibernate3.x . hibernate2.x lazy = "false" . hibernet 3.x external-join . fetch = "join" fetch = "select" external-join = "true" external-join = "false". hibernate3.x.      .
      . DTD hbm XML Hibernate 3.x Hibernate2.x.

:

Hibernate3 , ANTLR   HQL/SQL. Hibernate 2.1
  - .   , Hibernate
  hibernate.query.factory_class.

+5

Source: https://habr.com/ru/post/1785622/


All Articles