org.tynamo.descriptor.annotation
Annotation Type Collection


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Collection


Optional Element Summary
 String addExpression
           
 boolean allowRemove
           
 boolean child
          Child collections will not allow you to choose from all possible instances of the element type, only to create new instances and remove instances from the collection.
 String inverse
          The field in the other end of the realtionship.
 String removeExpression
           
 String swapExpression
           
 

inverse

public abstract String inverse
The field in the other end of the realtionship. Required for @OneToMany @Collection(child=false)

Returns:
Default:
""

child

public abstract boolean child
Child collections will not allow you to choose from all possible instances of the element type, only to create new instances and remove instances from the collection.

Returns:
Default:
false

addExpression

public abstract String addExpression
Default:
""

removeExpression

public abstract String removeExpression
Default:
""

swapExpression

public abstract String swapExpression
Default:
""

allowRemove

public abstract boolean allowRemove
Default:
true


Copyright © 2004-2009. All Rights Reserved.