org.apache.cayenne.lifecycle.relationship
Annotation Type ObjectIdRelationship


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface ObjectIdRelationship

Defines a "virtual" read-only to-one relationship based on an FK that is a String representation of Cayenne ObjectId. A target object of this relationship can be of any entity type.

Since:
3.1

Optional Element Summary
 String value
          Returns the name of the property of the annotated entity that stores a String "FK" of a related entity.
 

value

public abstract String value
Returns the name of the property of the annotated entity that stores a String "FK" of a related entity.

Default:
""


Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.