org.hibernate.metamodel.source.binder
Interface ToOneAttributeSource
- All Superinterfaces:
- AssociationAttributeSource, AttributeSource, RelationalValueSourceContainer, SingularAttributeSource
- All Known Implementing Classes:
- ToOneAttributeSourceImpl
public interface ToOneAttributeSource
- extends SingularAttributeSource, AssociationAttributeSource
Further contract for sources of *-to-one
style associations.
getReferencedEntityName
String getReferencedEntityName()
- Obtain the name of the referenced entity.
- Returns:
- The name of the referenced entity
getReferencedEntityAttributeName
String getReferencedEntityAttributeName()
- Obtain the name of the referenced attribute. Typically the reference is built based on the identifier
attribute of the
referenced entity
, but this value allows using a different
attribute instead.
- Returns:
- The name of the referenced attribute;
null
indicates the identifier attribute.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.