|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface FKey
Specifies the foreign key
Example:
@FKey(name = "fkey1", ddl = true, columns = { "field1", "field2" }, refs = { "Entity1", "field1", "field2" })
public class SomeClass()
| Optional Element Summary | |
|---|---|
String[] |
columns
Columns in this table |
boolean |
ddl
if ddl set to false, will not output DDL when call TableModelUtils's entity2Model() and oneEntity2Model methods |
String |
name
(Optional) The name of the foreign key. |
String[] |
refs
Referenced table name and columns, first is table name, followed by column names, like "table1, col1, col2..." |
public abstract String name
public abstract String[] columns
public abstract String[] refs
public abstract boolean ddl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||