org.chromattic.metamodel.mapping
Class RelationshipMapping<P extends PropertyInfo<BeanValueInfo,K>,R extends RelationshipMapping,K extends ValueKind>
java.lang.Object
org.chromattic.metamodel.mapping.PropertyMapping<P,BeanValueInfo,K>
org.chromattic.metamodel.mapping.RelationshipMapping<P,R,K>
- Direct Known Subclasses:
- RelationshipMapping.ManyToOne, RelationshipMapping.OneToMany, RelationshipMapping.OneToOne
public abstract class RelationshipMapping<P extends PropertyInfo<BeanValueInfo,K>,R extends RelationshipMapping,K extends ValueKind>
- extends PropertyMapping<P,BeanValueInfo,K>
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationshipMapping
public RelationshipMapping(java.lang.Class<R> relatedRelationhipType,
P property)
getRelatedBean
public BeanInfo getRelatedBean()
getRelatedBeanMapping
public BeanMapping getRelatedBeanMapping()
getRelatedRelationshipMapping
public java.util.List<R> getRelatedRelationshipMapping()
isTypeCovariant
public boolean isTypeCovariant()
- Description copied from class:
PropertyMapping
- Returns true if the property type is covariant, meaning that it redefines the type from an ancestor
with a subclass.
- Specified by:
isTypeCovariant in class PropertyMapping<P extends PropertyInfo<BeanValueInfo,K>,BeanValueInfo,K extends ValueKind>
- Returns:
- true if the property is type covariant
Copyright © 2014 eXo Platform SAS. All Rights Reserved.