* sets the hibernate session factory into the default configured persistence service, overwriting the configured session factory (if there is one configured).
* if a nonstandard persistence service is configured, then this call has no effect.
*/
public void setSessionFactory(SessionFactory sessionFactory)
{
PersistenceService persistenceService = getPersistenceService();
if (persistenceService instanceof DbPersistenceService) {
DbPersistenceService dbPersistenceService = (DbPersistenceService) persistenceService;
dbPersistenceService.setSessionFactory(sessionFactory);
}
}