diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java index 1f3d21bf28..a27762a4b3 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java @@ -706,6 +706,7 @@ public class BasicHibernateAnnotationsTest extends BaseCoreFunctionalTestCase { ZipCode.class, Flight.class, Name.class, + LastName.class, FormalLastName.class, Car.class, Peugot.class, diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/enumerated/EntityEnum.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/enumerated/EntityEnum.java index a420a1cfaa..5c5c869866 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/annotations/enumerated/EntityEnum.java +++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/enumerated/EntityEnum.java @@ -14,7 +14,11 @@ import org.hibernate.annotations.TypeDefs; * @author Janario Oliveira */ @Entity -@TypeDefs({ @TypeDef(typeClass = LastNumberType.class, defaultForType = EntityEnum.LastNumber.class) }) +@TypeDefs({ + @TypeDef(name = "LastNumber", + typeClass = LastNumberType.class, + defaultForType = EntityEnum.LastNumber.class) +}) public class EntityEnum { enum Common {