Package org.jboss.as.test.integration.jpa.hibernate.envers

Examples of org.jboss.as.test.integration.jpa.hibernate.envers.Person


    }

  @Test
  public void testSimpleEnversOperation() throws Exception {
        SLSBPU slsbpu = lookup("SLSBPU",SLSBPU.class);
    Person p1= slsbpu.createPerson( "Strong","Liu","kexueyuan source road",307 );
    Person p2= slsbpu.createPerson( "tom","cat","apache",34 );
    Address a1 =p1.getAddress();
    a1.setHouseNumber( 5 );

    p2.setAddress( a1 );
    slsbpu.updateAddress( a1 );
    slsbpu.updatePerson( p2 );

    int size = slsbpu.retrieveOldPersonVersionFromAddress( a1.getId() );
    Assert.assertEquals( 1, size );
View Full Code Here

TOP

Related Classes of org.jboss.as.test.integration.jpa.hibernate.envers.Person

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.