@ -340,10 +340,12 @@ public class LocalSessionFactoryBuilder extends Configuration {
@@ -340,10 +340,12 @@ public class LocalSessionFactoryBuilder extends Configuration {
returnthis.sessionFactoryFuture.get();
}
catch(InterruptedExceptionex){
thrownewIllegalStateException("Interrupted during initialization of Hibernate SessionFactory",ex);
thrownewIllegalStateException("Interrupted during initialization of Hibernate SessionFactory: "+
ex.getMessage());
}
catch(ExecutionExceptionex){
thrownewIllegalStateException("Failed to asynchronously initialize Hibernate SessionFactory",ex);
thrownewIllegalStateException("Failed to asynchronously initialize Hibernate SessionFactory: "+
@ -366,7 +366,6 @@ public abstract class AbstractEntityManagerFactoryBean implements
@@ -366,7 +366,6 @@ public abstract class AbstractEntityManagerFactoryBean implements
// application-managed EntityManager proxy that automatically joins
@ -381,7 +380,6 @@ public abstract class AbstractEntityManagerFactoryBean implements
@@ -381,7 +380,6 @@ public abstract class AbstractEntityManagerFactoryBean implements
if(logger.isInfoEnabled()){
logger.info("Initialized JPA EntityManagerFactory for persistence unit '"+getPersistenceUnitName()+"'");
@ -481,15 +479,16 @@ public abstract class AbstractEntityManagerFactoryBean implements
@@ -481,15 +479,16 @@ public abstract class AbstractEntityManagerFactoryBean implements