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 Class<? extends BaseEntity>foreignKeyClassStringvalue
-
Element Details
-
value
String value- Returns:
- The name of the column on the table which will be joined.
-
foreignKeyClass
Class<? extends BaseEntity> foreignKeyClass- Returns:
- The class which represents the table which will be joined.
-