HHH-6133 Enhance annotation based Jandex index with configuration extracted from orm.xml

This commit is contained in:
Strong Liu 2011-05-11 23:21:45 +08:00 committed by Hardy Ferentschik
parent 31d0ca2f0f
commit 635ee5a0ec
3 changed files with 1 additions and 3 deletions

View File

@ -369,7 +369,7 @@ public class MockHelper {
method = getterMethod( clazz, name );
if ( method == null ) {
throw new HibernateException(
"Unable to load method "
"Unable to load property "
+ name
+ " of class " + clazz.getName()
);

View File

@ -29,7 +29,6 @@ public class BasicMockerTest extends AbstractMockerTest {
assertEquals( 1, index.getKnownClasses().size() );
DotName itemName = DotName.createSimple( Item.class.getName() );
assertHasAnnotation( index, itemName, JPADotNames.ENTITY );
assertHasAnnotation( index, itemName, JPADotNames.TABLE );
assertHasAnnotation( index, itemName, JPADotNames.ID, 2 );
assertHasAnnotation( index, itemName, JPADotNames.GENERATED_VALUE, 2 );
}

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"