|
|
@ -46,19 +46,10 @@ public class Field extends Table {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private boolean isMust = false;
|
|
|
|
private boolean isMust = false;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 是否唯一,新怎前检查重复
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// private boolean isUnique = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 是否是主键
|
|
|
|
* 是否是主键
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private boolean isPrimaryKey = false;
|
|
|
|
private boolean isPrimaryKey = false;
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 是否作为查询条件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// private boolean isQuery = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean isSearch = false;
|
|
|
|
private boolean isSearch = false;
|
|
|
|
|
|
|
|
|
|
|
@ -194,7 +185,7 @@ public class Field extends Table {
|
|
|
|
this.fieldLength.set(fieldLength);
|
|
|
|
this.fieldLength.set(fieldLength);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// isUnique
|
|
|
|
// isUnique 是否唯一,新怎前检查重复
|
|
|
|
private final BooleanProperty isUnique = new SimpleBooleanProperty();
|
|
|
|
private final BooleanProperty isUnique = new SimpleBooleanProperty();
|
|
|
|
|
|
|
|
|
|
|
|
public BooleanProperty isUniqueProperty() {
|
|
|
|
public BooleanProperty isUniqueProperty() {
|
|
|
@ -209,7 +200,7 @@ public class Field extends Table {
|
|
|
|
this.isUnique.set(isUnique);
|
|
|
|
this.isUnique.set(isUnique);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// isQuery
|
|
|
|
// isQuery 是否作为查询条件
|
|
|
|
private final BooleanProperty isQuery = new SimpleBooleanProperty();
|
|
|
|
private final BooleanProperty isQuery = new SimpleBooleanProperty();
|
|
|
|
|
|
|
|
|
|
|
|
public BooleanProperty isQueryProperty() {
|
|
|
|
public BooleanProperty isQueryProperty() {
|
|
|
|