Hibernate 发布 4.2.0 的首个 CR 版本,主要改进记录包括:
Bug修复和提升:
- HHH-465:
nulls first
andnulls last
syntax in HQL ordering - HHH-1917: automatically delete orphaned JoinTable rows on a bulk delete affecting a Many-To-Many association
- HHH-2448: deterministic column aliases, regardless of mapping ordering -- mainly affects clustering environments
- HHH-7797: the logic handling unique columns and constraints was entirely re-written and improved
性能方面的提升:
- HHH-7746: additional batch loading algorithms (use
hibernate.batchfetchstyle
in your settings -- see the new Enum for choices) - HHH-7872: improves L2 caching of reference data (enable with
hibernate.cache.usereferenceentries
) - HHH-7902: Originally, JDBC types (Connection, Statement, ResultSet, etc.) were wrapped with Java Proxies to introduce resource management, logging, etc. The proxying was shown to be a performance hotspot, so they were entirely removed. The functionality was replaced with a new set of internal contracts/helpers.
相关链接:
JBoss Nexus: https://repository.jboss.org/nexus/content/groups/public/org/hibernate
Maven Central: http://repo1.maven.org/maven2/org/hibernate/hibernate-core (should update in a couple of days)
SourceForge: https://sourceforge.net/projects/hibernate/files/hibernate4
Hibernate 的详细介绍:请点这里
Hibernate 的下载地址:请点这里
