Annotation Type ForeignKeyPath
@Target(FIELD)
@Retention(RUNTIME)
public @interface ForeignKeyPath
This annotation is used to indicate that only a specific column of a table is supposed to be joined when executing the query.
It has to be used in conjunction with the
ForeignKeyEntity attribute.- Author:
- Collin Alpert
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends BaseEntity>foreignKeyClassjava.lang.Stringvalue
-
Element Details
-
value
java.lang.String value- Returns:
- The name of the column on the table which will be joined.
-
foreignKeyClass
java.lang.Class<? extends BaseEntity> foreignKeyClass- Returns:
- The class which represents the table which will be joined.
-