From 35ce5bfef7b6550ff200ead387e5f40434935fa9 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 9 Jan 2012 17:53:11 -0600 Subject: [PATCH] HHH-5024 - MetadataContext#registerAttribute does not recognize inherited fields --- .../embeddedid/MappedSuperclassWithEmbeddedIdTest.java | 3 +++ .../idclass/MappedSuperclassWithEntityWithIdClassTest.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/embeddedid/MappedSuperclassWithEmbeddedIdTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/embeddedid/MappedSuperclassWithEmbeddedIdTest.java index 0de505da09..1b2531ca70 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/embeddedid/MappedSuperclassWithEmbeddedIdTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/embeddedid/MappedSuperclassWithEmbeddedIdTest.java @@ -45,6 +45,9 @@ public class MappedSuperclassWithEmbeddedIdTest extends BaseUnitTestCase { assertNotNull( "'Product_.description' should not be null)", Product_.description ); assertNotNull( "'Product_.id' should not be null)", Product_.id ); + + assertNotNull( "'Product_.id' should not be null)", AbstractProduct_.id ); + assertNotNull( "'ProductId_.id' should not be null)", ProductId_.id ); assertNotNull( "'ProductId_.code' should not be null)", ProductId_.code ); } diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/idclass/MappedSuperclassWithEntityWithIdClassTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/idclass/MappedSuperclassWithEntityWithIdClassTest.java index 28055ee1e5..a4eb136219 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/idclass/MappedSuperclassWithEntityWithIdClassTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/metadata/mappedsuperclass/idclass/MappedSuperclassWithEntityWithIdClassTest.java @@ -47,6 +47,9 @@ public class MappedSuperclassWithEntityWithIdClassTest extends BaseUnitTestCase assertNotNull( "'ProductAttribute_.value' should not be null)", ProductAttribute_.value ); assertNotNull( "'ProductAttribute_.owner' should not be null)", ProductAttribute_.owner ); assertNotNull( "'ProductAttribute_.key' should not be null)", ProductAttribute_.key ); + + assertNotNull( "'AbstractAttribute_.owner' should not be null)", AbstractAttribute_.owner ); + assertNotNull( "'AbstractAttribute_.key' should not be null)", AbstractAttribute_.key ); } }