public Session openSession() throws HibernateException { return withOptions().openSession(); }
private Session buildEntityManager(SynchronizationType synchronizationType, Map map) { assert !isClosed; SessionBuilderImplementor builder = withOptions(); if ( synchronizationType == SynchronizationType.SYNCHRONIZED ) { builder.autoJoinTransactions( true ); } else { builder.autoJoinTransactions( false ); } final Session session = builder.openSession(); if ( map != null ) { map.keySet().forEach( key -> { if ( key instanceof String ) { session.setProperty( (String) key, map.get( key ) ); } } ); } return session; }
@Override public OgmSession openSession() { Session session = builder.openSession(); return new OgmSessionImpl( factory, (EventSource) session ); }
@Override public Session openSession() throws HibernateException { return withOptions().openSession(); }
public Session openSession() throws HibernateException { return withOptions().openSession(); }
private Session buildEntityManager(SynchronizationType synchronizationType, Map map) { assert !isClosed; SessionBuilderImplementor builder = withOptions(); if ( synchronizationType == SynchronizationType.SYNCHRONIZED ) { builder.autoJoinTransactions( true ); } else { builder.autoJoinTransactions( false ); } final Session session = builder.openSession(); if ( map != null ) { map.keySet().forEach( key -> { if ( key instanceof String ) { session.setProperty( (String) key, map.get( key ) ); } } ); } return session; }