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

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


   */

  public void testGenericGenerators() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    Monkey monkey = new Monkey();
    s.persist( monkey );
    s.flush();
    assertNotNull( monkey.getId() );
    tx.rollback();
    s.close();
  }
View Full Code Here


   * GenericGenerators holder are bound correctly
   */
  public void testGenericGenerators() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    Monkey monkey = new Monkey();
    s.persist(monkey);
    s.flush();
    assertNotNull(monkey.getId());
    tx.rollback();
    s.close();
  }
View Full Code Here

   * GenericGenerators holder are bound correctly
   */
  public void testGenericGenerators() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    Monkey monkey = new Monkey();
    s.persist(monkey);
    s.flush();
    assertNotNull(monkey.getId());
    tx.rollback();
    s.close();
  }
View Full Code Here

TOP

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

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.