minor code changes
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
9263a26270
commit
d938576fcc
|
@ -13,7 +13,6 @@ import java.util.Set;
|
||||||
import org.hibernate.EntityNameResolver;
|
import org.hibernate.EntityNameResolver;
|
||||||
import org.hibernate.MappingException;
|
import org.hibernate.MappingException;
|
||||||
import org.hibernate.Metamodel;
|
import org.hibernate.Metamodel;
|
||||||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
|
||||||
import org.hibernate.metamodel.MappingMetamodel;
|
import org.hibernate.metamodel.MappingMetamodel;
|
||||||
import org.hibernate.persister.collection.CollectionPersister;
|
import org.hibernate.persister.collection.CollectionPersister;
|
||||||
import org.hibernate.persister.entity.EntityPersister;
|
import org.hibernate.persister.entity.EntityPersister;
|
||||||
|
|
|
@ -71,10 +71,10 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
|
||||||
@Override
|
@Override
|
||||||
public boolean hasRegisteredResources() {
|
public boolean hasRegisteredResources() {
|
||||||
return hasRegistered( xref )
|
return hasRegistered( xref )
|
||||||
|| hasRegistered( unassociatedResultSets )
|
|| hasRegistered( unassociatedResultSets )
|
||||||
|| hasRegistered( blobs )
|
|| hasRegistered( blobs )
|
||||||
|| hasRegistered( clobs )
|
|| hasRegistered( clobs )
|
||||||
|| hasRegistered( nclobs );
|
|| hasRegistered( nclobs );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -182,7 +182,6 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static void close(Statement statement) {
|
public static void close(Statement statement) {
|
||||||
log.tracef( "Closing prepared statement [%s]", statement );
|
log.tracef( "Closing prepared statement [%s]", statement );
|
||||||
|
|
||||||
|
|
|
@ -642,7 +642,7 @@ public class HibernateProcessor extends AbstractProcessor {
|
||||||
final TypeElement fieldType = (TypeElement) declaredType.asElement();
|
final TypeElement fieldType = (TypeElement) declaredType.asElement();
|
||||||
if ( fieldType.getKind() == ElementKind.ENUM ) {
|
if ( fieldType.getKind() == ElementKind.ENUM ) {
|
||||||
for (Element enumMember : fieldType.getEnclosedElements() ) {
|
for (Element enumMember : fieldType.getEnclosedElements() ) {
|
||||||
if ( enumMember.getKind() == ElementKind.ENUM_CONSTANT) {
|
if ( enumMember.getKind() == ElementKind.ENUM_CONSTANT ) {
|
||||||
context.addEnumValue( fieldType.getQualifiedName().toString(),
|
context.addEnumValue( fieldType.getQualifiedName().toString(),
|
||||||
enumMember.getSimpleName().toString() );
|
enumMember.getSimpleName().toString() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue