HHH-6392 making the simple class name the default jpa entity name

This commit is contained in:
Hardy Ferentschik 2011-07-12 15:02:35 +02:00
parent 959056dee7
commit d58bb5a103
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ public class EntityBinder {
);
String name;
if ( jpaEntityAnnotation.value( "name" ) == null ) {
name = entityClass.getName();
name = entityClass.getClass().getSimpleName();
}
else {
name = jpaEntityAnnotation.value( "name" ).asString();