@groovy.util.logging.Slf4j class SessionFactoryProvider extends java.lang.Object implements com.google.inject.Provider<org.hibernate.SessionFactory>
A provider for a Hibernate SessionFactory.
Constructor and description |
---|
SessionFactoryProvider(Settings settings) |
SessionFactoryProvider(java.lang.String user, java.lang.String password, java.lang.String url, java.lang.Class<?> driver) A constructor used mainly for testing. |
Type Params | Return Type | Name and description |
---|---|---|
|
SessionFactoryProvider |
addPackageToScan(java.lang.String packageName) |
|
org.hibernate.SessionFactory |
get() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
A constructor used mainly for testing.
user
- The database usernamepassword
- The database passwordurl
- The JDBC URLdriver
- The database driver class