Package org.hibernate.impl

Examples of org.hibernate.impl.SessionImpl.beginTransaction()


    super.tearDown();
  }

  public void testHiLoAlgorithm() {
    SessionImpl session = (SessionImpl) sessionFactory.openSession();
    session.beginTransaction();

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // initially sequence should be uninitialized
    assertEquals( 0L, extractSequenceValue( session ) );
View Full Code Here


    super.tearDown();
  }

  public void testHiLoAlgorithm() {
    SessionImpl session = (SessionImpl) sessionFactory.openSession();
    session.beginTransaction();

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // initially sequence should be uninitialized
    assertEquals( 0L, extractInDatabaseValue( session ) );
View Full Code Here

    super.tearDown();
  }

  public void testHiLoAlgorithm() {
    SessionImpl session = (SessionImpl) sessionFactory.openSession();
    session.beginTransaction();

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // initially sequence should be uninitialized
    assertEquals( 0L, extractSequenceValue( session ) );
View Full Code Here

        // fix the issue of hsqldb write delay stupid default value
        SessionFactory fac = super.buildSessionFactory();
        try
        {
          SessionImpl hib = (SessionImpl)fac.openSession();
          hib.beginTransaction();
          Statement stat = hib.getJDBCContext().borrowConnection().createStatement();
          stat.executeUpdate("SET WRITE_DELAY FALSE");
          hib.getTransaction().commit();
          stat.close();
          hib.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.