HHH-6230 Formatting

This commit is contained in:
Hardy Ferentschik 2011-05-17 12:20:07 +02:00
parent fc942278cc
commit 2fd2bc3e8d
2 changed files with 5 additions and 6 deletions

View File

@ -23,18 +23,17 @@
*/
package org.hibernate.metamodel.source.hbm.state.binding;
import java.util.Map;
import org.hibernate.metamodel.binding.MappingDefaults;
import org.hibernate.metamodel.domain.MetaAttribute;
import org.hibernate.metamodel.source.hbm.xml.mapping.XMLHibernateMapping.XMLClass.XMLDiscriminator;
import org.hibernate.metamodel.state.binding.DiscriminatorBindingState;
/**
* @author Gail Badner
*/
public class HbmDiscriminatorBindingState extends AbstractHbmAttributeBindingState implements DiscriminatorBindingState {
public class HbmDiscriminatorBindingState extends AbstractHbmAttributeBindingState
implements DiscriminatorBindingState {
private final XMLDiscriminator discriminator;
public HbmDiscriminatorBindingState(
String ownerClassName,
MappingDefaults defaults,

View File

@ -89,7 +89,7 @@ public class HbmManyToOneAttributeBindingState
}
private static String getReferencedEntityName(String ownerClassName, XMLManyToOneElement manyToOne, MappingDefaults defaults) {
String referencedEntityName = null;
String referencedEntityName;
if ( manyToOne.getEntityName() != null ) {
referencedEntityName = manyToOne.getEntityName();
}
@ -98,7 +98,7 @@ public class HbmManyToOneAttributeBindingState
}
else {
Class ownerClazz = MappingHelper.classForName( ownerClassName, defaults.getServiceRegistry() );
referencedEntityName = ReflectHelper.reflectedPropertyClass( ownerClazz, manyToOne.getName() ).getName();
referencedEntityName = ReflectHelper.reflectedPropertyClass( ownerClazz, manyToOne.getName() ).getName();
}
return referencedEntityName;
}