org.springframework.datastore.mapping.types
Class ToOne<T>

java.lang.Object
  extended by org.springframework.datastore.mapping.AbstractPersistentProperty
      extended by org.springframework.datastore.mapping.types.Association<T>
          extended by org.springframework.datastore.mapping.types.ToOne<T>
All Implemented Interfaces:
PersistentProperty
Direct Known Subclasses:
ManyToOne, OneToOne

public abstract class ToOne<T>
extends Association<T>

Since:
1.1

Field Summary
 
Fields inherited from class org.springframework.datastore.mapping.types.Association
DEFAULT_CHILD_CASCADE, DEFAULT_OWNER_CASCADE
 
Fields inherited from class org.springframework.datastore.mapping.AbstractPersistentProperty
context, name, owner, type
 
Constructor Summary
ToOne(PersistentEntity owner, MappingContext context, PropertyDescriptor descriptor)
           
ToOne(PersistentEntity owner, MappingContext context, String name, Class type)
           
 
Method Summary
 boolean isForeignKeyInChild()
           
 void setForeignKeyInChild(boolean foreignKeyInChild)
           
 
Methods inherited from class org.springframework.datastore.mapping.types.Association
doesCascade, getAssociatedEntity, getCascadeOperations, getFetchStrategy, getInverseSide, getReferencedPropertyName, isBidirectional, isList, isOwningSide, setAssociatedEntity, setFetchStrategy, setOwningSide, setReferencedPropertyName, toString
 
Methods inherited from class org.springframework.datastore.mapping.AbstractPersistentProperty
getCapitilizedName, getName, getOwner, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.datastore.mapping.PersistentProperty
getMapping
 

Constructor Detail

ToOne

public ToOne(PersistentEntity owner,
             MappingContext context,
             PropertyDescriptor descriptor)

ToOne

public ToOne(PersistentEntity owner,
             MappingContext context,
             String name,
             Class type)
Method Detail

setForeignKeyInChild

public void setForeignKeyInChild(boolean foreignKeyInChild)

isForeignKeyInChild

public boolean isForeignKeyInChild()