|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Many2Many
Use this annotation to override conventions in cases where they are impossible to follow. This annotation does not have to be placed on two models, one is sufficient.
| Required Element Summary | |
|---|---|
String |
join
Name of a table used for joining records from other tables. |
Class<? extends Model> |
other
This is a type of a model that is the "other" end of the relationship. |
String |
sourceFKName
Foreign key name of a source table in the join. |
String |
targetFKName
Foreign key name of a target table in the join table. |
| Element Detail |
|---|
public abstract Class<? extends Model> other
public abstract String join
public abstract String sourceFKName
public abstract String targetFKName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||