Package org.hibernate.test.annotations.id.sequences.entities

Examples of org.hibernate.test.annotations.id.sequences.entities.Store


  }

  public void testClassLevelGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    Store b = new Store();
    s.persist( b );
    tx.commit();
    s.close();
    assertNotNull( b.getId() );

    s = openSession();
    tx = s.beginTransaction();
    s.delete( s.get( Store.class, b.getId() ) );
    tx.commit();
    s.close();
  }
View Full Code Here


  }

  public void testClassLevelGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    Store b = new Store();
    s.persist(b);
    tx.commit();
    s.close();
    assertNotNull(b.getId());

    s = openSession();
    tx = s.beginTransaction();
    s.delete(s.get(Store.class, b.getId()));
    tx.commit();
    s.close();
  }
View Full Code Here

  }

  public void testClassLevelGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    Store b = new Store();
    s.persist(b);
    tx.commit();
    s.close();
    assertNotNull(b.getId());

    s = openSession();
    tx = s.beginTransaction();
    s.delete(s.get(Store.class, b.getId()));
    tx.commit();
    s.close();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.test.annotations.id.sequences.entities.Store

Copyright © 2018 www.massapicom. 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.