com.j256.ormlite.field
Annotation Type ForeignCollectionField


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface ForeignCollectionField

Annotation that identifies a ForeignCollection field in a class that corresponds to objects in a foreign table that match the foreign-id of the current class.

 @ForeignCollection(id = true)
 private ForeignCollection<Order> orders;
 

Author:
graywatson

Optional Element Summary
 boolean eager
          Set to true if the collection is a an eager collection where all of the results should be retrieved when the parent object is retrieved.
 

eager

public abstract boolean eager
Set to true if the collection is a an eager collection where all of the results should be retrieved when the parent object is retrieved. Default is false (lazy) when the results will not be retrieved until you ask for the iterator from the collection.

Default:
false


Copyright © 2011. All Rights Reserved.