|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface ManyToOne
Indicates a many-to-one relationship.
It must be specified for a property annotated with @DbProperty that is a single-valued reference property; that is,
it is not a primitive type and not a reference to a Collection, and the inverse property is a reference to a
class that inherits from com.jadeworld.jade.rootschema.Collection.
The @ManyToOne annotation is required only when there is an inverse present, to define this end of the relationship.
| Optional Element Summary | |
|---|---|
java.lang.String |
constraint
Optional. |
boolean |
inverseNotRequired
Optional. |
java.lang.String[] |
inverses
The Java name of the inverse property (may be more than one). |
ReferenceRelationshipType |
relationshipType
relationshipType sets the type of relationship for the property. |
boolean |
transientToPersistentAllowed
Optional. |
ReferenceUpdateMode |
updateMode
updateMode determines what is automatically done by JADE and what is done by user logic. |
public abstract ReferenceRelationshipType relationshipType
public abstract ReferenceUpdateMode updateMode
public abstract boolean transientToPersistentAllowed
public abstract boolean inverseNotRequired
public abstract java.lang.String constraint
public abstract java.lang.String[] inverses
|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||