org.hibernate.envers.test.integration.superclass.auditparents
Class TotalAuditParentsTest

java.lang.Object
  extended by org.hibernate.envers.test.AbstractEnversTest
      extended by org.hibernate.envers.test.AbstractEntityTest
          extended by org.hibernate.envers.test.integration.superclass.auditparents.TotalAuditParentsTest

public class TotalAuditParentsTest
extends AbstractEntityTest

Tests mapping of baby entity which declares its parent as audited with Audited.auditParents() property. Moreover, child class (mapped superclass of baby entity) declares grandparent entity as audited. In this case all attributes of baby class shall be audited.


Constructor Summary
TotalAuditParentsTest()
           
 
Method Summary
 void configure(Ejb3Configuration cfg)
           
 void initData()
           
 void testCompleteAuditParents()
           
 void testCreatedAuditTable()
           
 
Methods inherited from class org.hibernate.envers.test.AbstractEntityTest
addConfigurationProperties, close, getAuditReader, getCfg, getEntityManager, init, init, newEntityManager
 
Methods inherited from class org.hibernate.envers.test.AbstractEnversTest
data, getAuditStrategy, setTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TotalAuditParentsTest

public TotalAuditParentsTest()
Method Detail

configure

public void configure(Ejb3Configuration cfg)
Specified by:
configure in class AbstractEntityTest

initData

public void initData()

testCreatedAuditTable

public void testCreatedAuditTable()

testCompleteAuditParents

public void testCompleteAuditParents()


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.