com.github.drinkjava2.jdialects.annotation.jdia
Annotation Type FKey2


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface FKey2

Specifies the foreign key

   Example:

   @FKey2(name="fk_1", columns="field1,field2", ref="OtherTable, field1, field2")
   public class SomeClass()
 

Since:
jDialects 1.0.5

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..."
 

name

public abstract String name
(Optional) The name of the foreign key.

Default:
""

columns

public abstract String[] columns
Columns in this table

Default:
{}

refs

public abstract String[] refs
Referenced table name and columns, first is table name, followed by column names, like "table1, col1, col2..."

Default:
{}

ddl

public abstract boolean ddl
if ddl set to false, will not output DDL when call TableModelUtils's entity2Model() and oneEntity2Model methods

Default:
true


Copyright © 2018. All rights reserved.