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

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


  public void testIdInEmbeddableSuperclass() throws Exception {
    Session s;
    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    FirTree chrismasTree = new FirTree();
    s.persist( chrismasTree );
    tx.commit();
    s.clear();
    tx = s.beginTransaction();
    chrismasTree = ( FirTree ) s.get( FirTree.class, chrismasTree.getId() );
    assertNotNull( chrismasTree );
    s.delete( chrismasTree );
    tx.commit();
    s.close();
  }
View Full Code Here


  public void testIdInEmbeddableSuperclass() throws Exception {
    Session s;
    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    FirTree chrismasTree = new FirTree();
    s.persist(chrismasTree);
    tx.commit();
    s.clear();
    tx = s.beginTransaction();
    chrismasTree = (FirTree) s.get(FirTree.class, chrismasTree.getId());
    assertNotNull(chrismasTree);
    s.delete(chrismasTree);
    tx.commit();
    s.close();
  }
View Full Code Here

  public void testIdInEmbeddableSuperclass() throws Exception {
    Session s;
    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    FirTree chrismasTree = new FirTree();
    s.persist(chrismasTree);
    tx.commit();
    s.clear();
    tx = s.beginTransaction();
    chrismasTree = (FirTree) s.get(FirTree.class, chrismasTree.getId());
    assertNotNull(chrismasTree);
    s.delete(chrismasTree);
    tx.commit();
    s.close();
  }
View Full Code Here

TOP

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

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.