HHH-6230 Formatting
This commit is contained in:
parent
fc942278cc
commit
2fd2bc3e8d
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue