Help

Hibernate ORM version 4.1.2 has just been released. This is a minor bug fix release containing 35 bug fixes. See the changelog for the complete list of fixes. Specific fixes of note include:

  • Numerous fixes for 4.1-introduced load-by-natural-id feature. Many thanks to Eric Dalquist and Guenther Demetz for really hitting that feature hard, helping shake out issues and often developing fixes. Open Source at its finest! The most significant improvement here was removing the reliance on auto-flushing when performing a load-by-natural-id (HHH-7206)
  • A few fixes (HHH-7017, HHH-7020, HHH-7090) related to org.hibernate.SharedSessionBuilder which is the contract used to build sessions from other sessions.
  • HHH-7190 - Potentially major performance hit relating to proxy generation
  • Update Infinispan dependency to version 5.1.2. Also support for natural-id caching added to the hibernate-infinispan integration.

As usual, the artifacts have been uploaded to the JBoss Nexus repository (and will be synchronized to Maven Central in a day or two) and the release bundles have been uploaded to the Hibernate SourceForge in both ZIP and TGZ formats.

FYI, I forgot to name this release with '.Final' qualifier in version. So the artifacts are just versioned 4.1.2.

7 comments:
 
05. Apr 2012, 21:35 CET | Link

Quick update. I just redid the release strictly to apply the 'Final' qualifier to the version for consistency sake. I left the original artifacts alone. Again, the only change was to change the version from 4.1.2 to 4.1.2.Final; otherwise the 2 are exactly the same.

Cheers.

ReplyQuote
 
14. Apr 2012, 18:20 CET | Link
<blockquote>
_Steve Ebersole wrote on Apr 05, 2012 15:35:_<br/>

Quick update. I just redid the release strictly to apply the 'Final' qualifier to the version for consistency sake. I left the original artifacts alone. Again, the only change was to change the version from 4.1.2 to 4.1.2.Final; otherwise the 2 are exactly the same.

Cheers.
</blockquote>

Click HELP for text formatting instructions. Then edit this text and check the preview.
 
15. Apr 2012, 02:34 CET | Link
我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好
 
15. Apr 2012, 05:14 CET | Link
wwwww142

我觉得很好

 
18. Apr 2012, 11:51 CET | Link
David Bolsover

Following the updates in 4.1.2 and specifically those relating to HHH-7169 (Use ClassLoaderService to load JDBC driver classes), a few users, myself included, have reported problems (via user forum) that suggest the database driver class cannot be loaded from the Classpath.

Whilst I am working with a database (PervasiveSQL) not formally supported by Hibernate and have come to expect difficulties, others are working with MySql and appear to be have the same or at least related problems.

I wonder if you could provide some guidance on the ‘correct’ way to write a HibernateUtil class to open and close Sessions; the existing documentation appears to be rather lacking in this regard and it is possible that poor observance of Hibernate configuration requirements is causing these problems.

db

 
19. Apr 2012, 08:18 CET | Link
Exception in thread "main" java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at org.hibernate.cfg.Configuration.reset(Configuration.java:326)
        at org.hibernate.cfg.Configuration.<init>(Configuration.java:265)
        at org.hibernate.cfg.Configuration.<init>(Configuration.java:269)
        at com.xh.hibernate.HibernateTest.main(HibernateTest.java:20)
Caused by: java.lang.ClassNotFoundException: org.hibernate.util.DTDEntityResolver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 16 more
 
26. Jun 2012, 15:14 CET | Link
bst

Is it true that unless Issue-7305 is fixed, we cannot use multi tenancy in hibernate? If it is true then I can't see what is the point of further releases/changes/features to support multiple connection providers..

Post Comment