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


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface SingleFKey

A shortcut annotation of FKey, only for one column


Optional Element Summary
 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:
""

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.