|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -421,8 +421,8 @@ public class LocalSessionFactoryBuilder extends Configuration { |
|
|
|
return this.sessionFactoryFuture.get(); |
|
|
|
return this.sessionFactoryFuture.get(); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (InterruptedException ex) { |
|
|
|
catch (InterruptedException ex) { |
|
|
|
throw new IllegalStateException("Interrupted during initialization of Hibernate SessionFactory: " + |
|
|
|
Thread.currentThread().interrupt(); |
|
|
|
ex.getMessage()); |
|
|
|
throw new IllegalStateException("Interrupted during initialization of Hibernate SessionFactory", ex); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (ExecutionException ex) { |
|
|
|
catch (ExecutionException ex) { |
|
|
|
throw new IllegalStateException("Failed to asynchronously initialize Hibernate SessionFactory: " + |
|
|
|
throw new IllegalStateException("Failed to asynchronously initialize Hibernate SessionFactory: " + |
|
|
|
|