@Inherited @Retention(value=RUNTIME) @Target(value=FIELD) public @interface ForeignKey
Model class field as being a foreign key identifier of another class. Allows for
automatic generation of hypermedia links in web responses, based upon the inferred relationship
and query string parameters.| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
model
The
Model class that the foreign key field is referencing. |
ForeignKey.Relationship |
relationship
ForeignKey.Relationship value that represents the entity relationship to the referenced class. |
public abstract ForeignKey.Relationship relationship
ForeignKey.Relationship value that represents the entity relationship to the referenced class.public abstract String rel
public abstract String field
Copyright © 2016. All rights reserved.