Yesterday (December 20) Hibernate framework released the first Beta version of the 3.0 version. According to the writer Gavin King, Hibernate 3.0 will be officially released in the first quarter next year (2005). Hibernate is an O / R mapping framework based on POJO (Plain-Old Java Object, ordinary Java object), and is also the most popular object persistence tool for J2EE communities. The EJB3 specification that is being developed is a large number of experiences in Hibernate.
In the beta1 version, Hibernate3 does not provide support for J2SE 5.0, which is mainly due to compatibility considerations. Gavin King, will introduce new language features provided by J2SE 5.0 in 2005, such as generic, metadata labels, etc.
Hibernate3 main new features include:
Realize the persistence operation of EJB3 style. In addition to the original SaveorUpdate () and SaveorUpDateCopy (), two operations of the EJB3 style () and MERGE () are provided.
Provide stronger mapping flexibility. Allows a class to multiple tables, allowing mixing using the "one table of each inheritance system" and "one table of each subclass", and so on.
Support stored procedures and handwritten SQL, and you can use handwritten SQL to replace Hibernate automatically generated SQL statements.
HQL analysis based on AST (abstract syntax tree).
Field-level lazy acquisition. Each attribute can declare "lazy = true" in the mapping descriptor, which is loaded from the database when the property is real. However, achieving this feature is first enhanced in the compile period.