org.springframework.datastore.mapping.types
Class OneToOne<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>
              extended by org.springframework.datastore.mapping.types.OneToOne<T>
All Implemented Interfaces:
PersistentProperty

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

Models a one-to-one association

Since:
1.0

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
OneToOne(PersistentEntity owner, MappingContext context, PropertyDescriptor descriptor)
           
OneToOne(PersistentEntity owner, MappingContext context, String name, Class type)
           
 
Method Summary
 
Methods inherited from class org.springframework.datastore.mapping.types.ToOne
isForeignKeyInChild, setForeignKeyInChild
 
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

OneToOne

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

OneToOne

public OneToOne(PersistentEntity owner,
                MappingContext context,
                String name,
                Class type)