Example usage for org.hibernate SessionFactoryObserver sessionFactoryCreated

List of usage examples for org.hibernate SessionFactoryObserver sessionFactoryCreated

Introduction

In this page you can find the example usage for org.hibernate SessionFactoryObserver sessionFactoryCreated.

Prototype

default void sessionFactoryCreated(SessionFactory factory) 

Source Link

Document

Callback to indicate that the given factory has been created and is now ready for use.

Usage

From source file:org.openeos.hibernate.internal.configurators.ObserverConfigurator.java

License:Apache License

@Override
public void sessionFactoryCreated(SessionFactory factory) {
    LOG.debug("Session factory has been created, calling all SessionFactoryObserver services");
    for (SessionFactoryObserver observer : tracker.getTracked().values()) {
        observer.sessionFactoryCreated(factory);
    }//w  w  w .j a v a2 s  .c o  m
}