1、开发者管理

Former-commit-id: 5f6d235fde464bbdb46db803ce44898416698d25
master
wangbing 4 years ago
parent b209604ee5
commit b88811807d

@ -4,6 +4,8 @@ import javafx.beans.property.BooleanProperty;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import org.springframework.util.StringUtils;
import xyz.wbsite.dbtool.javafx.tool.Tool;
@ -18,14 +20,9 @@ public class Field extends Table {
}
public Field(String fieldName) {
this.fieldName = fieldName;
this.fieldName.setValue(fieldName);
}
/**
*
*/
private String fieldName;
/**
*
*/
@ -163,13 +160,29 @@ public class Field extends Table {
}
public String getterName() {
return "get" + Tool.ABB2Abb(this.fieldName);
return "get" + Tool.ABB2Abb(this.fieldName.get());
}
public String setterName() {
return "set" + Tool.ABB2Abb(this.fieldName);
return "set" + Tool.ABB2Abb(this.fieldName.get());
}
// 字典名称
private final StringProperty fieldName = new SimpleStringProperty();
public StringProperty fieldNameProperty() {
return fieldName;
}
public String getFieldName() {
return fieldName.get();
}
public void setFieldName(String fieldName) {
this.fieldName.set(fieldName);
}
// 字段长度
private final IntegerProperty fieldLength = new SimpleIntegerProperty();
@ -215,14 +228,6 @@ public class Field extends Table {
this.isQuery.set(isQuery);
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public FieldType getFieldType() {
return fieldType;
}
@ -264,10 +269,10 @@ public class Field extends Table {
}
public String getFName() {
return Tool.lineToFieldName(this.fieldName);
return Tool.lineToFieldName(this.fieldName.get());
}
public String getCName() {
return Tool.ABB2Abb(this.fieldName);
return Tool.ABB2Abb(this.fieldName.get());
}
}

@ -8,6 +8,7 @@
<needSys>true</needSys>
<needCloud>false</needCloud>
<needAsync>false</needAsync>
<api>false</api>
<database>SQLite</database>
<modules>
<module>
@ -250,6 +251,21 @@
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
<table create="true" delete="true" find="true" get="true" html="true" search="false" sys="true" tableComment="开发商" tableName="DEVELOPER" update="true">
<fields>
<field IsSystem="true" defaultValue="" fieldComment="主键" fieldLength="0" fieldName="ID" fieldType="Long" isMust="true" isPrimaryKey="true" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="公司名称" fieldLength="50" fieldName="NAME" fieldType="String_var50" isMust="false" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="公司简介" fieldLength="255" fieldName="NOTE" fieldType="String_var255" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="应用码" fieldLength="50" fieldName="APP_KEY" fieldType="String_var50" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="true"/>
<field IsSystem="false" defaultValue="NULL" fieldComment="安全码" fieldLength="16" fieldName="APP_SECRET" fieldType="String_var" isMust="true" isPrimaryKey="false" isQuery="true" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="行版本" fieldLength="0" fieldName="ROW_VERSION" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="0" fieldComment="是否已删除" fieldLength="0" fieldName="IS_DELETED" fieldType="Boolean" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="创建用户" fieldLength="0" fieldName="CREATE_BY" fieldType="Long" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="NULL" fieldComment="创建时间" fieldLength="0" fieldName="CREATE_TIME" fieldType="Date" isMust="true" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新用户" fieldLength="0" fieldName="LAST_UPDATE_BY" fieldType="Long" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
<field IsSystem="true" defaultValue="" fieldComment="最后更新时间" fieldLength="0" fieldName="LAST_UPDATE_TIME" fieldType="Date" isMust="false" isPrimaryKey="false" isQuery="false" isSearch="false" isUnique="false"/>
</fields>
</table>
</tables>
</module>
</modules>

Loading…
Cancel
Save

Powered by TurnKey Linux.