Examples of MulIdTestEntity


Examples of org.hibernate.envers.test.entities.ids.MulIdTestEntity

        str1_id = new MulId(1, 2);
        str2_id = new MulId(3, 4);

        coll1_id = new MulId(5, 6);

        MulIdTestEntity str1 = new MulIdTestEntity(str1_id.getId1(), str1_id.getId2(), "str1");
        MulIdTestEntity str2 = new MulIdTestEntity(str2_id.getId1(), str2_id.getId2(), "str2");

        SetRefCollEntityMulId coll1 = new SetRefCollEntityMulId(coll1_id.getId1(), coll1_id.getId2(), "coll1");

        // Revision 1
        em.getTransaction().begin();
View Full Code Here

Examples of org.hibernate.envers.test.entities.ids.MulIdTestEntity

        assert Arrays.asList(1).equals(getAuditReader().getRevisions(MulIdTestEntity.class, str2_id));
    }

    @Test
    public void testHistoryOfColl1() {
        MulIdTestEntity str1 = getEntityManager().find(MulIdTestEntity.class, str1_id);
        MulIdTestEntity str2 = getEntityManager().find(MulIdTestEntity.class, str2_id);

        SetRefCollEntityMulId rev1 = getAuditReader().find(SetRefCollEntityMulId.class, coll1_id, 1);
        SetRefCollEntityMulId rev2 = getAuditReader().find(SetRefCollEntityMulId.class, coll1_id, 2);
        SetRefCollEntityMulId rev3 = getAuditReader().find(SetRefCollEntityMulId.class, coll1_id, 3);
        SetRefCollEntityMulId rev4 = getAuditReader().find(SetRefCollEntityMulId.class, coll1_id, 4);
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.