HHH-7490 - Integrate Envers with Metamodel

This commit is contained in:
Gail Badner 2014-03-25 23:02:42 -07:00
parent 17a456867b
commit f8037380f7
3 changed files with 7 additions and 0 deletions

View File

@ -31,12 +31,14 @@ import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.components.relations.OneToManyComponent;
import org.hibernate.envers.test.entities.components.relations.OneToManyComponentTestEntity;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.junit.Test;
/**
* @author Adam Warski (adam at warski dot org)
*/
@FailureExpectedWithNewMetamodel( message = "Collection role is incorrect when contained in an @Embeddable" )
public class OneToManyInComponent extends BaseEnversJPAFunctionalTestCase {
private Integer otmcte_id1;
private Integer ste_id1;

View File

@ -31,6 +31,7 @@ import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.components.relations.OneToManyComponent;
import org.hibernate.envers.test.entities.components.relations.OneToManyComponentTestEntity;
import org.hibernate.envers.test.integration.naming.VersionsJoinTableRangeComponent;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.junit.Test;
@ -57,6 +58,7 @@ public class HasChangedOneToManyInComponent extends AbstractModifiedFlagsEntityT
@Test
@Priority(10)
@FailureExpectedWithNewMetamodel( message = "Collction role is incorrect when contained in an @Embeddable" )
public void initData() {
// Revision 1
EntityManager em = getEntityManager();
@ -97,6 +99,7 @@ public class HasChangedOneToManyInComponent extends AbstractModifiedFlagsEntityT
}
@Test
@FailureExpectedWithNewMetamodel( message = "Fails because initData fails." )
public void testHasChangedId1() throws Exception {
List list =
queryForPropertyHasChanged(

View File

@ -29,12 +29,14 @@ import java.util.Arrays;
import org.hibernate.envers.test.BaseEnversJPAFunctionalTestCase;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.ids.MulId;
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
import org.junit.Test;
/**
* @author Adam Warski (adam at warski dot org)
*/
@FailureExpectedWithNewMetamodel( jiraKey = "HHH-9055 : Association with an entity with @IdClass is broken." )
public class MulIdBidirectional extends BaseEnversJPAFunctionalTestCase {
private MulId ed1_id;
private MulId ed2_id;