Package org.fastnate.hibernate.data
Class DatabaseStartupImport
java.lang.Object
org.fastnate.hibernate.data.DatabaseStartupImport
- All Implemented Interfaces:
Serializable,org.hibernate.SessionFactoryObserver
Imports data on startup of Hibernate, if the database was just created.
- Author:
- Tobias Liefke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsessionFactoryCreated(org.hibernate.SessionFactory factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.SessionFactoryObserver
sessionFactoryClosed, sessionFactoryClosing
-
Constructor Details
-
DatabaseStartupImport
public DatabaseStartupImport()
-
-
Method Details
-
sessionFactoryCreated
public void sessionFactoryCreated(org.hibernate.SessionFactory factory) - Specified by:
sessionFactoryCreatedin interfaceorg.hibernate.SessionFactoryObserver
-