Code example for SessionException

0
  public void commit( ) throws ConstraintViolationException {
    if ( this.tx != null ) {
      this.tx.commit( );
      this.tx = null;
    } else { 
      throw new SessionException( "Attempt to commit session which is already closed:  " + this.txStart );
    } 
  } 
   
  public Criteria createCriteria( final Class class1 ) {
    return this.getSession( ).createCriteria( class1 );
  } 
   
  /** package default on purpose **/ 
  EntityManager getEntityManager( ) { 
    return this.tx.getEntityManager( );
  } 
   
  /** :| should also be package default **/ 
  Session getSession( ) {
Stop searching for code, let great code find you!  Add Codota to your java IDE