Examples of SLSBPU


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

        return interfaceType.cast(iniCtx.lookup("java:global/" + ARCHIVE_NAME + "/" + beanName + "!" + interfaceType.getName()));
    }

  @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
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.