本文整理匯總了Golang中github.com/mikeshimura/dbflute/df.ColumnSqlName類的典型用法代碼示例。如果您正苦於以下問題:Golang ColumnSqlName類的具體用法?Golang ColumnSqlName怎麽用?Golang ColumnSqlName使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ColumnSqlName類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Create_CustomerDbm
func Create_CustomerDbm() {
CustomerDbm = new(CustomerDbm_T)
CustomerDbm.TableDbName = "customer"
CustomerDbm.TableDispName = "customer"
CustomerDbm.TablePropertyName = "customer"
CustomerDbm.TableSqlName = new(df.TableSqlName)
CustomerDbm.TableSqlName.TableSqlName = "customer"
CustomerDbm.TableSqlName.CorrespondingDbName = CustomerDbm.TableDbName
var customer df.DBMeta
customer = CustomerDbm
CustomerDbm.DBMeta = &customer
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
CustomerDbm.ColumnId = df.CCI(&customer, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('customer_id_seq'::regclass)", false, "", "", "", "", "", false, "int64")
cusCdSqlName := new(df.ColumnSqlName)
cusCdSqlName.ColumnSqlName = "cus_cd"
cusCdSqlName.IrregularChar = false
CustomerDbm.ColumnCusCd = df.CCI(&customer, "cus_cd", cusCdSqlName, "", "",
"String.class", "cusCd", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
nameSqlName := new(df.ColumnSqlName)
nameSqlName.ColumnSqlName = "name"
nameSqlName.IrregularChar = false
CustomerDbm.ColumnName = df.CCI(&customer, "name", nameSqlName, "", "",
"String.class", "name", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
addrSqlName := new(df.ColumnSqlName)
addrSqlName.ColumnSqlName = "addr"
addrSqlName.IrregularChar = false
CustomerDbm.ColumnAddr = df.CCI(&customer, "addr", addrSqlName, "", "",
"String.class", "addr", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
bldgSqlName := new(df.ColumnSqlName)
bldgSqlName.ColumnSqlName = "bldg"
bldgSqlName.IrregularChar = false
CustomerDbm.ColumnBldg = df.CCI(&customer, "bldg", bldgSqlName, "", "",
"String.class", "bldg", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
cusConSecSqlName := new(df.ColumnSqlName)
cusConSecSqlName.ColumnSqlName = "cus_con_sec"
cusConSecSqlName.IrregularChar = false
CustomerDbm.ColumnCusConSec = df.CCI(&customer, "cus_con_sec", cusConSecSqlName, "", "",
"String.class", "cusConSec", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
cusConNameSqlName := new(df.ColumnSqlName)
cusConNameSqlName.ColumnSqlName = "cus_con_name"
cusConNameSqlName.IrregularChar = false
CustomerDbm.ColumnCusConName = df.CCI(&customer, "cus_con_name", cusConNameSqlName, "", "",
"String.class", "cusConName", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
telSqlName := new(df.ColumnSqlName)
telSqlName.ColumnSqlName = "tel"
telSqlName.IrregularChar = false
CustomerDbm.ColumnTel = df.CCI(&customer, "tel", telSqlName, "", "",
"String.class", "tel", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
salesAmountSqlName := new(df.ColumnSqlName)
salesAmountSqlName.ColumnSqlName = "sales_amount"
salesAmountSqlName.IrregularChar = false
CustomerDbm.ColumnSalesAmount = df.CCI(&customer, "sales_amount", salesAmountSqlName, "", "",
"Long.class", "salesAmount", "", false, false, false, "int8", 19, 0,
"", false, "", "", "", "", "", false, "sql.NullInt64")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
CustomerDbm.ColumnVersionNo = df.CCI(&customer, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
CustomerDbm.ColumnDelFlag = df.CCI(&customer, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
CustomerDbm.ColumnRegisterDatetime = df.CCI(&customer, "register_datetime", registerDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "registerDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
CustomerDbm.ColumnRegisterUser = df.CCI(&customer, "register_user", registerUserSqlName, "", "",
"String.class", "registerUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
registerProcessSqlName := new(df.ColumnSqlName)
registerProcessSqlName.ColumnSqlName = "register_process"
registerProcessSqlName.IrregularChar = false
CustomerDbm.ColumnRegisterProcess = df.CCI(&customer, "register_process", registerProcessSqlName, "", "",
"String.class", "registerProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateDatetimeSqlName := new(df.ColumnSqlName)
updateDatetimeSqlName.ColumnSqlName = "update_datetime"
updateDatetimeSqlName.IrregularChar = false
CustomerDbm.ColumnUpdateDatetime = df.CCI(&customer, "update_datetime", updateDatetimeSqlName, "", "",
//.........這裏部分代碼省略.........
示例2: Create_SalesSlipDbm
func Create_SalesSlipDbm() {
SalesSlipDbm = new(SalesSlipDbm_T)
SalesSlipDbm.TableDbName = "sales_slip"
SalesSlipDbm.TableDispName = "sales_slip"
SalesSlipDbm.TablePropertyName = "salesSlip"
SalesSlipDbm.TableSqlName = new(df.TableSqlName)
SalesSlipDbm.TableSqlName.TableSqlName = "sales_slip"
SalesSlipDbm.TableSqlName.CorrespondingDbName = SalesSlipDbm.TableDbName
var salesSlip df.DBMeta
salesSlip = SalesSlipDbm
SalesSlipDbm.DBMeta = &salesSlip
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
SalesSlipDbm.ColumnId = df.CCI(&salesSlip, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('sales_slip_id_seq'::regclass)", false, "", "", "", "", "", false, "int64")
slipNoSqlName := new(df.ColumnSqlName)
slipNoSqlName.ColumnSqlName = "slip_no"
slipNoSqlName.IrregularChar = false
SalesSlipDbm.ColumnSlipNo = df.CCI(&salesSlip, "slip_no", slipNoSqlName, "", "",
"Integer.class", "slipNo", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
lineSqlName := new(df.ColumnSqlName)
lineSqlName.ColumnSqlName = "line"
lineSqlName.IrregularChar = false
SalesSlipDbm.ColumnLine = df.CCI(&salesSlip, "line", lineSqlName, "", "",
"Integer.class", "line", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
salesDateSqlName := new(df.ColumnSqlName)
salesDateSqlName.ColumnSqlName = "sales_date"
salesDateSqlName.IrregularChar = false
SalesSlipDbm.ColumnSalesDate = df.CCI(&salesSlip, "sales_date", salesDateSqlName, "", "",
"java.time.LocalDate.class", "salesDate", "", false, false, true, "date", 13, 0,
"", false, "", "", "", "", "", false, "df.Date")
salesIdSqlName := new(df.ColumnSqlName)
salesIdSqlName.ColumnSqlName = "sales_id"
salesIdSqlName.IrregularChar = false
SalesSlipDbm.ColumnSalesId = df.CCI(&salesSlip, "sales_id", salesIdSqlName, "", "",
"Integer.class", "salesId", "", false, false, true, "int4", 10, 0,
"", false, "", "", "employee", "", "", false, "int64")
cusIdSqlName := new(df.ColumnSqlName)
cusIdSqlName.ColumnSqlName = "cus_id"
cusIdSqlName.IrregularChar = false
SalesSlipDbm.ColumnCusId = df.CCI(&salesSlip, "cus_id", cusIdSqlName, "", "",
"Integer.class", "cusId", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
prdIdSqlName := new(df.ColumnSqlName)
prdIdSqlName.ColumnSqlName = "prd_id"
prdIdSqlName.IrregularChar = false
SalesSlipDbm.ColumnPrdId = df.CCI(&salesSlip, "prd_id", prdIdSqlName, "", "",
"Integer.class", "prdId", "", false, false, true, "int4", 10, 0,
"", false, "", "", "product", "", "", false, "int64")
qtySqlName := new(df.ColumnSqlName)
qtySqlName.ColumnSqlName = "qty"
qtySqlName.IrregularChar = false
SalesSlipDbm.ColumnQty = df.CCI(&salesSlip, "qty", qtySqlName, "", "",
"Integer.class", "qty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
unitSqlName := new(df.ColumnSqlName)
unitSqlName.ColumnSqlName = "unit"
unitSqlName.IrregularChar = false
SalesSlipDbm.ColumnUnit = df.CCI(&salesSlip, "unit", unitSqlName, "", "",
"String.class", "unit", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
unitPriceSqlName := new(df.ColumnSqlName)
unitPriceSqlName.ColumnSqlName = "unit_price"
unitPriceSqlName.IrregularChar = false
SalesSlipDbm.ColumnUnitPrice = df.CCI(&salesSlip, "unit_price", unitPriceSqlName, "", "",
"Integer.class", "unitPrice", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
salesAmountSqlName := new(df.ColumnSqlName)
salesAmountSqlName.ColumnSqlName = "sales_amount"
salesAmountSqlName.IrregularChar = false
SalesSlipDbm.ColumnSalesAmount = df.CCI(&salesSlip, "sales_amount", salesAmountSqlName, "", "",
"Long.class", "salesAmount", "", false, false, true, "int8", 19, 0,
"", false, "", "", "", "", "", false, "int64")
slipAmountSqlName := new(df.ColumnSqlName)
slipAmountSqlName.ColumnSqlName = "slip_amount"
slipAmountSqlName.IrregularChar = false
SalesSlipDbm.ColumnSlipAmount = df.CCI(&salesSlip, "slip_amount", slipAmountSqlName, "", "",
"Long.class", "slipAmount", "", false, false, true, "int8", 19, 0,
"", false, "", "", "", "", "", false, "int64")
slipConsSqlName := new(df.ColumnSqlName)
slipConsSqlName.ColumnSqlName = "slip_cons"
slipConsSqlName.IrregularChar = false
SalesSlipDbm.ColumnSlipCons = df.CCI(&salesSlip, "slip_cons", slipConsSqlName, "", "",
"Long.class", "slipCons", "", false, false, true, "int8", 19, 0,
"", false, "", "", "", "", "", false, "int64")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
SalesSlipDbm.ColumnVersionNo = df.CCI(&salesSlip, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
SalesSlipDbm.ColumnDelFlag = df.CCI(&salesSlip, "del_flag", delFlagSqlName, "", "",
//.........這裏部分代碼省略.........
示例3: Create_SessionDbm
func Create_SessionDbm() {
SessionDbm = new(SessionDbm_T)
SessionDbm.TableDbName = "session"
SessionDbm.TableDispName = "session"
SessionDbm.TablePropertyName = "session"
SessionDbm.TableSqlName = new(df.TableSqlName)
SessionDbm.TableSqlName.TableSqlName = "session"
SessionDbm.TableSqlName.CorrespondingDbName = SessionDbm.TableDbName
var session df.DBMeta
session = SessionDbm
SessionDbm.DBMeta = &session
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
SessionDbm.ColumnId = df.CCI(&session, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('session_id_seq'::regclass)", false, "", "", "", "", "", false, "int64")
uuidSqlName := new(df.ColumnSqlName)
uuidSqlName.ColumnSqlName = "uuid"
uuidSqlName.IrregularChar = false
SessionDbm.ColumnUuid = df.CCI(&session, "uuid", uuidSqlName, "", "",
"String.class", "uuid", "", false, false, true, "varchar", 50, 0,
"", false, "", "", "", "", "", false, "string")
loginIdSqlName := new(df.ColumnSqlName)
loginIdSqlName.ColumnSqlName = "login_id"
loginIdSqlName.IrregularChar = false
SessionDbm.ColumnLoginId = df.CCI(&session, "login_id", loginIdSqlName, "", "",
"Integer.class", "loginId", "", false, false, false, "int4", 10, 0,
"", false, "", "", "login", "", "", false, "sql.NullInt64")
compIdSqlName := new(df.ColumnSqlName)
compIdSqlName.ColumnSqlName = "comp_id"
compIdSqlName.IrregularChar = false
SessionDbm.ColumnCompId = df.CCI(&session, "comp_id", compIdSqlName, "", "",
"Integer.class", "compId", "", false, false, false, "int4", 10, 0,
"", false, "", "", "", "", "", false, "sql.NullInt64")
dataSqlName := new(df.ColumnSqlName)
dataSqlName.ColumnSqlName = "data"
dataSqlName.IrregularChar = false
SessionDbm.ColumnData = df.CCI(&session, "data", dataSqlName, "", "",
"String.class", "data", "", false, false, false, "varchar", 255, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
SessionDbm.ColumnVersionNo = df.CCI(&session, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
SessionDbm.ColumnDelFlag = df.CCI(&session, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
SessionDbm.ColumnRegisterDatetime = df.CCI(&session, "register_datetime", registerDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "registerDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
SessionDbm.ColumnRegisterUser = df.CCI(&session, "register_user", registerUserSqlName, "", "",
"String.class", "registerUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
registerProcessSqlName := new(df.ColumnSqlName)
registerProcessSqlName.ColumnSqlName = "register_process"
registerProcessSqlName.IrregularChar = false
SessionDbm.ColumnRegisterProcess = df.CCI(&session, "register_process", registerProcessSqlName, "", "",
"String.class", "registerProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateDatetimeSqlName := new(df.ColumnSqlName)
updateDatetimeSqlName.ColumnSqlName = "update_datetime"
updateDatetimeSqlName.IrregularChar = false
SessionDbm.ColumnUpdateDatetime = df.CCI(&session, "update_datetime", updateDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "updateDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
updateUserSqlName := new(df.ColumnSqlName)
updateUserSqlName.ColumnSqlName = "update_user"
updateUserSqlName.IrregularChar = false
SessionDbm.ColumnUpdateUser = df.CCI(&session, "update_user", updateUserSqlName, "", "",
"String.class", "updateUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateProcessSqlName := new(df.ColumnSqlName)
updateProcessSqlName.ColumnSqlName = "update_process"
updateProcessSqlName.IrregularChar = false
SessionDbm.ColumnUpdateProcess = df.CCI(&session, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
SessionDbm.ColumnInfoList = new(df.List)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnId)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnUuid)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnLoginId)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnCompId)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnData)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnVersionNo)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnDelFlag)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnRegisterDatetime)
//.........這裏部分代碼省略.........
示例4: Create_ProductDbm
func Create_ProductDbm() {
ProductDbm = new(ProductDbm_T)
ProductDbm.TableDbName = "product"
ProductDbm.TableDispName = "product"
ProductDbm.TablePropertyName = "product"
ProductDbm.TableSqlName = new(df.TableSqlName)
ProductDbm.TableSqlName.TableSqlName = "product"
ProductDbm.TableSqlName.CorrespondingDbName = ProductDbm.TableDbName
var product df.DBMeta
product = ProductDbm
ProductDbm.DBMeta = &product
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
ProductDbm.ColumnId = df.CCI(&product, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('product_id_seq'::regclass)", false, "", "", "", "salesSlipList,stockList", "", false, "int64")
prdCdSqlName := new(df.ColumnSqlName)
prdCdSqlName.ColumnSqlName = "prd_cd"
prdCdSqlName.IrregularChar = false
ProductDbm.ColumnPrdCd = df.CCI(&product, "prd_cd", prdCdSqlName, "", "",
"String.class", "prdCd", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
prdCatSqlName := new(df.ColumnSqlName)
prdCatSqlName.ColumnSqlName = "prd_cat"
prdCatSqlName.IrregularChar = false
ProductDbm.ColumnPrdCat = df.CCI(&product, "prd_cat", prdCatSqlName, "", "",
"String.class", "prdCat", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
nameSqlName := new(df.ColumnSqlName)
nameSqlName.ColumnSqlName = "name"
nameSqlName.IrregularChar = false
ProductDbm.ColumnName = df.CCI(&product, "name", nameSqlName, "", "",
"String.class", "name", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
costSqlName := new(df.ColumnSqlName)
costSqlName.ColumnSqlName = "cost"
costSqlName.IrregularChar = false
ProductDbm.ColumnCost = df.CCI(&product, "cost", costSqlName, "", "",
"Integer.class", "cost", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
priceSqlName := new(df.ColumnSqlName)
priceSqlName.ColumnSqlName = "price"
priceSqlName.IrregularChar = false
ProductDbm.ColumnPrice = df.CCI(&product, "price", priceSqlName, "", "",
"Integer.class", "price", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
perQtySqlName := new(df.ColumnSqlName)
perQtySqlName.ColumnSqlName = "per_qty"
perQtySqlName.IrregularChar = false
ProductDbm.ColumnPerQty = df.CCI(&product, "per_qty", perQtySqlName, "", "",
"Integer.class", "perQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
unitSqlName := new(df.ColumnSqlName)
unitSqlName.ColumnSqlName = "unit"
unitSqlName.IrregularChar = false
ProductDbm.ColumnUnit = df.CCI(&product, "unit", unitSqlName, "", "",
"String.class", "unit", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
purQtySqlName := new(df.ColumnSqlName)
purQtySqlName.ColumnSqlName = "pur_qty"
purQtySqlName.IrregularChar = false
ProductDbm.ColumnPurQty = df.CCI(&product, "pur_qty", purQtySqlName, "", "",
"Integer.class", "purQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
purAmountSqlName := new(df.ColumnSqlName)
purAmountSqlName.ColumnSqlName = "pur_amount"
purAmountSqlName.IrregularChar = false
ProductDbm.ColumnPurAmount = df.CCI(&product, "pur_amount", purAmountSqlName, "", "",
"Long.class", "purAmount", "", false, false, true, "int8", 19, 0,
"", false, "", "", "", "", "", false, "int64")
salesQtySqlName := new(df.ColumnSqlName)
salesQtySqlName.ColumnSqlName = "sales_qty"
salesQtySqlName.IrregularChar = false
ProductDbm.ColumnSalesQty = df.CCI(&product, "sales_qty", salesQtySqlName, "", "",
"Integer.class", "salesQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
salesAmountSqlName := new(df.ColumnSqlName)
salesAmountSqlName.ColumnSqlName = "sales_amount"
salesAmountSqlName.IrregularChar = false
ProductDbm.ColumnSalesAmount = df.CCI(&product, "sales_amount", salesAmountSqlName, "", "",
"Long.class", "salesAmount", "", false, false, true, "int8", 19, 0,
"", false, "", "", "", "", "", false, "int64")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
ProductDbm.ColumnVersionNo = df.CCI(&product, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
ProductDbm.ColumnDelFlag = df.CCI(&product, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
ProductDbm.ColumnRegisterDatetime = df.CCI(&product, "register_datetime", registerDatetimeSqlName, "", "",
//.........這裏部分代碼省略.........
示例5: Create_EmployeeDbm
func Create_EmployeeDbm() {
EmployeeDbm = new(EmployeeDbm_T)
EmployeeDbm.TableDbName = "employee"
EmployeeDbm.TableDispName = "employee"
EmployeeDbm.TablePropertyName = "employee"
EmployeeDbm.TableSqlName = new(df.TableSqlName)
EmployeeDbm.TableSqlName.TableSqlName = "employee"
EmployeeDbm.TableSqlName.CorrespondingDbName = EmployeeDbm.TableDbName
var employee df.DBMeta
employee = EmployeeDbm
EmployeeDbm.DBMeta = &employee
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
EmployeeDbm.ColumnId = df.CCI(&employee, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('employee_id_seq'::regclass)", false, "", "", "", "salesSlipList", "", false, "int64")
empCdSqlName := new(df.ColumnSqlName)
empCdSqlName.ColumnSqlName = "emp_cd"
empCdSqlName.IrregularChar = false
EmployeeDbm.ColumnEmpCd = df.CCI(&employee, "emp_cd", empCdSqlName, "", "",
"String.class", "empCd", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
secIdSqlName := new(df.ColumnSqlName)
secIdSqlName.ColumnSqlName = "sec_id"
secIdSqlName.IrregularChar = false
EmployeeDbm.ColumnSecId = df.CCI(&employee, "sec_id", secIdSqlName, "", "",
"Integer.class", "secId", "", false, false, true, "int4", 10, 0,
"", false, "", "", "userTable", "", "", false, "int64")
nameSqlName := new(df.ColumnSqlName)
nameSqlName.ColumnSqlName = "name"
nameSqlName.IrregularChar = false
EmployeeDbm.ColumnName = df.CCI(&employee, "name", nameSqlName, "", "",
"String.class", "name", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
EmployeeDbm.ColumnVersionNo = df.CCI(&employee, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
EmployeeDbm.ColumnDelFlag = df.CCI(&employee, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
EmployeeDbm.ColumnRegisterDatetime = df.CCI(&employee, "register_datetime", registerDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "registerDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
EmployeeDbm.ColumnRegisterUser = df.CCI(&employee, "register_user", registerUserSqlName, "", "",
"String.class", "registerUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
registerProcessSqlName := new(df.ColumnSqlName)
registerProcessSqlName.ColumnSqlName = "register_process"
registerProcessSqlName.IrregularChar = false
EmployeeDbm.ColumnRegisterProcess = df.CCI(&employee, "register_process", registerProcessSqlName, "", "",
"String.class", "registerProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateDatetimeSqlName := new(df.ColumnSqlName)
updateDatetimeSqlName.ColumnSqlName = "update_datetime"
updateDatetimeSqlName.IrregularChar = false
EmployeeDbm.ColumnUpdateDatetime = df.CCI(&employee, "update_datetime", updateDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "updateDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
updateUserSqlName := new(df.ColumnSqlName)
updateUserSqlName.ColumnSqlName = "update_user"
updateUserSqlName.IrregularChar = false
EmployeeDbm.ColumnUpdateUser = df.CCI(&employee, "update_user", updateUserSqlName, "", "",
"String.class", "updateUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateProcessSqlName := new(df.ColumnSqlName)
updateProcessSqlName.ColumnSqlName = "update_process"
updateProcessSqlName.IrregularChar = false
EmployeeDbm.ColumnUpdateProcess = df.CCI(&employee, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
EmployeeDbm.ColumnInfoList = new(df.List)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnId)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnEmpCd)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnSecId)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnName)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnVersionNo)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnDelFlag)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnRegisterDatetime)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnRegisterUser)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnRegisterProcess)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnUpdateDatetime)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnUpdateUser)
EmployeeDbm.ColumnInfoList.Add(EmployeeDbm.ColumnUpdateProcess)
EmployeeDbm.ColumnInfoMap = make(map[string]int)
//.........這裏部分代碼省略.........
示例6: Create_LoginDbm
func Create_LoginDbm() {
LoginDbm = new(LoginDbm_T)
LoginDbm.TableDbName = "login"
LoginDbm.TableDispName = "login"
LoginDbm.TablePropertyName = "login"
LoginDbm.TableSqlName = new(df.TableSqlName)
LoginDbm.TableSqlName.TableSqlName = "login"
LoginDbm.TableSqlName.CorrespondingDbName = LoginDbm.TableDbName
var login df.DBMeta
login = LoginDbm
LoginDbm.DBMeta = &login
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
LoginDbm.ColumnId = df.CCI(&login, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('login_id_seq'::regclass)", false, "", "", "", "sessionList", "", false, "int64")
loginIdSqlName := new(df.ColumnSqlName)
loginIdSqlName.ColumnSqlName = "login_id"
loginIdSqlName.IrregularChar = false
LoginDbm.ColumnLoginId = df.CCI(&login, "login_id", loginIdSqlName, "", "",
"String.class", "loginId", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
nameSqlName := new(df.ColumnSqlName)
nameSqlName.ColumnSqlName = "name"
nameSqlName.IrregularChar = false
LoginDbm.ColumnName = df.CCI(&login, "name", nameSqlName, "", "",
"String.class", "name", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
passwordSqlName := new(df.ColumnSqlName)
passwordSqlName.ColumnSqlName = "password"
passwordSqlName.IrregularChar = false
LoginDbm.ColumnPassword = df.CCI(&login, "password", passwordSqlName, "", "",
"String.class", "password", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
LoginDbm.ColumnVersionNo = df.CCI(&login, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
LoginDbm.ColumnDelFlag = df.CCI(&login, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
LoginDbm.ColumnRegisterDatetime = df.CCI(&login, "register_datetime", registerDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "registerDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
LoginDbm.ColumnRegisterUser = df.CCI(&login, "register_user", registerUserSqlName, "", "",
"String.class", "registerUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
registerProcessSqlName := new(df.ColumnSqlName)
registerProcessSqlName.ColumnSqlName = "register_process"
registerProcessSqlName.IrregularChar = false
LoginDbm.ColumnRegisterProcess = df.CCI(&login, "register_process", registerProcessSqlName, "", "",
"String.class", "registerProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateDatetimeSqlName := new(df.ColumnSqlName)
updateDatetimeSqlName.ColumnSqlName = "update_datetime"
updateDatetimeSqlName.IrregularChar = false
LoginDbm.ColumnUpdateDatetime = df.CCI(&login, "update_datetime", updateDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "updateDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
updateUserSqlName := new(df.ColumnSqlName)
updateUserSqlName.ColumnSqlName = "update_user"
updateUserSqlName.IrregularChar = false
LoginDbm.ColumnUpdateUser = df.CCI(&login, "update_user", updateUserSqlName, "", "",
"String.class", "updateUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateProcessSqlName := new(df.ColumnSqlName)
updateProcessSqlName.ColumnSqlName = "update_process"
updateProcessSqlName.IrregularChar = false
LoginDbm.ColumnUpdateProcess = df.CCI(&login, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
LoginDbm.ColumnInfoList = new(df.List)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnId)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnLoginId)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnName)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnPassword)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnVersionNo)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnDelFlag)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnRegisterDatetime)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnRegisterUser)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnRegisterProcess)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnUpdateDatetime)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnUpdateUser)
LoginDbm.ColumnInfoList.Add(LoginDbm.ColumnUpdateProcess)
LoginDbm.ColumnInfoMap = make(map[string]int)
//.........這裏部分代碼省略.........
示例7: Create_TestTableDbm
func Create_TestTableDbm() {
TestTableDbm = new(TestTableDbm_T)
TestTableDbm.TableDbName = "test_table"
TestTableDbm.TableDispName = "test_table"
TestTableDbm.TablePropertyName = "testTable"
TestTableDbm.TableSqlName = new(df.TableSqlName)
TestTableDbm.TableSqlName.TableSqlName = "test_table"
TestTableDbm.TableSqlName.CorrespondingDbName = TestTableDbm.TableDbName
var testTable df.DBMeta
testTable = TestTableDbm
TestTableDbm.DBMeta = &testTable
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
TestTableDbm.ColumnId = df.CCI(&testTable, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('test_table_id_seq'::regclass)", false, "", "", "", "", "", false, "int64")
testIdSqlName := new(df.ColumnSqlName)
testIdSqlName.ColumnSqlName = "test_id"
testIdSqlName.IrregularChar = false
TestTableDbm.ColumnTestId = df.CCI(&testTable, "test_id", testIdSqlName, "", "",
"String.class", "testId", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
testDateSqlName := new(df.ColumnSqlName)
testDateSqlName.ColumnSqlName = "test_date"
testDateSqlName.IrregularChar = false
TestTableDbm.ColumnTestDate = df.CCI(&testTable, "test_date", testDateSqlName, "", "",
"java.time.LocalDate.class", "testDate", "", false, false, false, "date", 13, 0,
"", false, "", "", "", "", "", false, "df.NullDate")
testTimestampSqlName := new(df.ColumnSqlName)
testTimestampSqlName.ColumnSqlName = "test_timestamp"
testTimestampSqlName.IrregularChar = false
TestTableDbm.ColumnTestTimestamp = df.CCI(&testTable, "test_timestamp", testTimestampSqlName, "", "",
"java.time.LocalDateTime.class", "testTimestamp", "", false, false, false, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.NullTimestamp")
testNbrSqlName := new(df.ColumnSqlName)
testNbrSqlName.ColumnSqlName = "test_nbr"
testNbrSqlName.IrregularChar = false
TestTableDbm.ColumnTestNbr = df.CCI(&testTable, "test_nbr", testNbrSqlName, "", "",
"Integer.class", "testNbr", "", false, false, false, "int4", 10, 0,
"", false, "", "", "", "", "", false, "sql.NullInt64")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
TestTableDbm.ColumnVersionNo = df.CCI(&testTable, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
TestTableDbm.ColumnDelFlag = df.CCI(&testTable, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
TestTableDbm.ColumnRegisterDatetime = df.CCI(&testTable, "register_datetime", registerDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "registerDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
TestTableDbm.ColumnRegisterUser = df.CCI(&testTable, "register_user", registerUserSqlName, "", "",
"String.class", "registerUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
registerProcessSqlName := new(df.ColumnSqlName)
registerProcessSqlName.ColumnSqlName = "register_process"
registerProcessSqlName.IrregularChar = false
TestTableDbm.ColumnRegisterProcess = df.CCI(&testTable, "register_process", registerProcessSqlName, "", "",
"String.class", "registerProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateDatetimeSqlName := new(df.ColumnSqlName)
updateDatetimeSqlName.ColumnSqlName = "update_datetime"
updateDatetimeSqlName.IrregularChar = false
TestTableDbm.ColumnUpdateDatetime = df.CCI(&testTable, "update_datetime", updateDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "updateDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
updateUserSqlName := new(df.ColumnSqlName)
updateUserSqlName.ColumnSqlName = "update_user"
updateUserSqlName.IrregularChar = false
TestTableDbm.ColumnUpdateUser = df.CCI(&testTable, "update_user", updateUserSqlName, "", "",
"String.class", "updateUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateProcessSqlName := new(df.ColumnSqlName)
updateProcessSqlName.ColumnSqlName = "update_process"
updateProcessSqlName.IrregularChar = false
TestTableDbm.ColumnUpdateProcess = df.CCI(&testTable, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
TestTableDbm.ColumnInfoList = new(df.List)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnId)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnTestId)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnTestDate)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnTestTimestamp)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnTestNbr)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnVersionNo)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnDelFlag)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnRegisterDatetime)
//.........這裏部分代碼省略.........
示例8: Create_SysTableDbm
func Create_SysTableDbm() {
SysTableDbm = new(SysTableDbm_T)
SysTableDbm.TableDbName = "sys_table"
SysTableDbm.TableDispName = "sys_table"
SysTableDbm.TablePropertyName = "sysTable"
SysTableDbm.TableSqlName = new(df.TableSqlName)
SysTableDbm.TableSqlName.TableSqlName = "sys_table"
SysTableDbm.TableSqlName.CorrespondingDbName = SysTableDbm.TableDbName
var sysTable df.DBMeta
sysTable = SysTableDbm
SysTableDbm.DBMeta = &sysTable
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
SysTableDbm.ColumnId = df.CCI(&sysTable, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('sys_table_id_seq'::regclass)", false, "", "", "", "", "", false, "int64")
tableNameSqlName := new(df.ColumnSqlName)
tableNameSqlName.ColumnSqlName = "table_name"
tableNameSqlName.IrregularChar = false
SysTableDbm.ColumnTableName = df.CCI(&sysTable, "table_name", tableNameSqlName, "", "",
"String.class", "tableName", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
key1SqlName := new(df.ColumnSqlName)
key1SqlName.ColumnSqlName = "key_1"
key1SqlName.IrregularChar = false
SysTableDbm.ColumnKey1 = df.CCI(&sysTable, "key_1", key1SqlName, "", "",
"String.class", "key1", "", false, false, true, "varchar", 40, 0,
"", false, "", "", "", "", "", false, "string")
key2SqlName := new(df.ColumnSqlName)
key2SqlName.ColumnSqlName = "key_2"
key2SqlName.IrregularChar = false
SysTableDbm.ColumnKey2 = df.CCI(&sysTable, "key_2", key2SqlName, "", "",
"String.class", "key2", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
s1DataSqlName := new(df.ColumnSqlName)
s1DataSqlName.ColumnSqlName = "s1_data"
s1DataSqlName.IrregularChar = false
SysTableDbm.ColumnS1Data = df.CCI(&sysTable, "s1_data", s1DataSqlName, "", "",
"String.class", "s1Data", "", false, false, false, "text", 2147483647, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
s2DataSqlName := new(df.ColumnSqlName)
s2DataSqlName.ColumnSqlName = "s2_data"
s2DataSqlName.IrregularChar = false
SysTableDbm.ColumnS2Data = df.CCI(&sysTable, "s2_data", s2DataSqlName, "", "",
"String.class", "s2Data", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
s3DataSqlName := new(df.ColumnSqlName)
s3DataSqlName.ColumnSqlName = "s3_data"
s3DataSqlName.IrregularChar = false
SysTableDbm.ColumnS3Data = df.CCI(&sysTable, "s3_data", s3DataSqlName, "", "",
"String.class", "s3Data", "", false, false, false, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "sql.NullString")
n1DataSqlName := new(df.ColumnSqlName)
n1DataSqlName.ColumnSqlName = "n1_data"
n1DataSqlName.IrregularChar = false
SysTableDbm.ColumnN1Data = df.CCI(&sysTable, "n1_data", n1DataSqlName, "", "",
"java.math.BigDecimal.class", "n1Data", "", false, false, false, "numeric", 20, 2,
"", false, "", "", "", "", "", false, "df.NullNumeric")
n2DataSqlName := new(df.ColumnSqlName)
n2DataSqlName.ColumnSqlName = "n2_data"
n2DataSqlName.IrregularChar = false
SysTableDbm.ColumnN2Data = df.CCI(&sysTable, "n2_data", n2DataSqlName, "", "",
"java.math.BigDecimal.class", "n2Data", "", false, false, false, "numeric", 20, 2,
"", false, "", "", "", "", "", false, "df.NullNumeric")
n3DataSqlName := new(df.ColumnSqlName)
n3DataSqlName.ColumnSqlName = "n3_data"
n3DataSqlName.IrregularChar = false
SysTableDbm.ColumnN3Data = df.CCI(&sysTable, "n3_data", n3DataSqlName, "", "",
"java.math.BigDecimal.class", "n3Data", "", false, false, false, "numeric", 20, 2,
"", false, "", "", "", "", "", false, "df.NullNumeric")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
SysTableDbm.ColumnVersionNo = df.CCI(&sysTable, "version_no", versionNoSqlName, "", "",
"Integer.class", "versionNo", "", false, false, true, "int4", 10, 0,
"", false, "OptimisticLockType.VERSION_NO", "", "", "", "", false, "int64")
delFlagSqlName := new(df.ColumnSqlName)
delFlagSqlName.ColumnSqlName = "del_flag"
delFlagSqlName.IrregularChar = false
SysTableDbm.ColumnDelFlag = df.CCI(&sysTable, "del_flag", delFlagSqlName, "", "",
"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
"0", false, "", "", "", "", "", false, "int64")
registerDatetimeSqlName := new(df.ColumnSqlName)
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
SysTableDbm.ColumnRegisterDatetime = df.CCI(&sysTable, "register_datetime", registerDatetimeSqlName, "", "",
"java.time.LocalDateTime.class", "registerDatetime", "", false, false, true, "timestamp", 29, 6,
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
SysTableDbm.ColumnRegisterUser = df.CCI(&sysTable, "register_user", registerUserSqlName, "", "",
"String.class", "registerUser", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
registerProcessSqlName := new(df.ColumnSqlName)
registerProcessSqlName.ColumnSqlName = "register_process"
registerProcessSqlName.IrregularChar = false
SysTableDbm.ColumnRegisterProcess = df.CCI(&sysTable, "register_process", registerProcessSqlName, "", "",
//.........這裏部分代碼省略.........
示例9: Create_StockDbm
func Create_StockDbm() {
StockDbm = new(StockDbm_T)
StockDbm.TableDbName = "stock"
StockDbm.TableDispName = "stock"
StockDbm.TablePropertyName = "stock"
StockDbm.TableSqlName = new(df.TableSqlName)
StockDbm.TableSqlName.TableSqlName = "stock"
StockDbm.TableSqlName.CorrespondingDbName = StockDbm.TableDbName
var stock df.DBMeta
stock = StockDbm
StockDbm.DBMeta = &stock
idSqlName := new(df.ColumnSqlName)
idSqlName.ColumnSqlName = "id"
idSqlName.IrregularChar = false
StockDbm.ColumnId = df.CCI(&stock, "id", idSqlName, "", "",
"Integer.class", "id", "", true, true, true, "serial", 10, 0,
"nextval('stock_id_seq'::regclass)", false, "", "", "", "", "", false, "int64")
yyyymmSqlName := new(df.ColumnSqlName)
yyyymmSqlName.ColumnSqlName = "yyyymm"
yyyymmSqlName.IrregularChar = false
StockDbm.ColumnYyyymm = df.CCI(&stock, "yyyymm", yyyymmSqlName, "", "",
"String.class", "yyyymm", "", false, false, true, "varchar", 6, 0,
"", false, "", "", "", "", "", false, "string")
prdIdSqlName := new(df.ColumnSqlName)
prdIdSqlName.ColumnSqlName = "prd_id"
prdIdSqlName.IrregularChar = false
StockDbm.ColumnPrdId = df.CCI(&stock, "prd_id", prdIdSqlName, "", "",
"Integer.class", "prdId", "", false, false, true, "int4", 10, 0,
"", false, "", "", "product", "", "", false, "int64")
nameSqlName := new(df.ColumnSqlName)
nameSqlName.ColumnSqlName = "name"
nameSqlName.IrregularChar = false
StockDbm.ColumnName = df.CCI(&stock, "name", nameSqlName, "", "",
"String.class", "name", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
costSqlName := new(df.ColumnSqlName)
costSqlName.ColumnSqlName = "cost"
costSqlName.IrregularChar = false
StockDbm.ColumnCost = df.CCI(&stock, "cost", costSqlName, "", "",
"Integer.class", "cost", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
priceSqlName := new(df.ColumnSqlName)
priceSqlName.ColumnSqlName = "price"
priceSqlName.IrregularChar = false
StockDbm.ColumnPrice = df.CCI(&stock, "price", priceSqlName, "", "",
"Integer.class", "price", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
unitSqlName := new(df.ColumnSqlName)
unitSqlName.ColumnSqlName = "unit"
unitSqlName.IrregularChar = false
StockDbm.ColumnUnit = df.CCI(&stock, "unit", unitSqlName, "", "",
"String.class", "unit", "", false, false, true, "varchar", 100, 0,
"", false, "", "", "", "", "", false, "string")
beforeQtySqlName := new(df.ColumnSqlName)
beforeQtySqlName.ColumnSqlName = "before_qty"
beforeQtySqlName.IrregularChar = false
StockDbm.ColumnBeforeQty = df.CCI(&stock, "before_qty", beforeQtySqlName, "", "",
"Integer.class", "beforeQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
purQtySqlName := new(df.ColumnSqlName)
purQtySqlName.ColumnSqlName = "pur_qty"
purQtySqlName.IrregularChar = false
StockDbm.ColumnPurQty = df.CCI(&stock, "pur_qty", purQtySqlName, "", "",
"Integer.class", "purQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
rcvQtySqlName := new(df.ColumnSqlName)
rcvQtySqlName.ColumnSqlName = "rcv_qty"
rcvQtySqlName.IrregularChar = false
StockDbm.ColumnRcvQty = df.CCI(&stock, "rcv_qty", rcvQtySqlName, "", "",
"Integer.class", "rcvQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
salesQtySqlName := new(df.ColumnSqlName)
salesQtySqlName.ColumnSqlName = "sales_qty"
salesQtySqlName.IrregularChar = false
StockDbm.ColumnSalesQty = df.CCI(&stock, "sales_qty", salesQtySqlName, "", "",
"Integer.class", "salesQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
outQtySqlName := new(df.ColumnSqlName)
outQtySqlName.ColumnSqlName = "out_qty"
outQtySqlName.IrregularChar = false
StockDbm.ColumnOutQty = df.CCI(&stock, "out_qty", outQtySqlName, "", "",
"Integer.class", "outQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
stockQtySqlName := new(df.ColumnSqlName)
stockQtySqlName.ColumnSqlName = "stock_qty"
stockQtySqlName.IrregularChar = false
StockDbm.ColumnStockQty = df.CCI(&stock, "stock_qty", stockQtySqlName, "", "",
"Integer.class", "stockQty", "", false, false, true, "int4", 10, 0,
"", false, "", "", "", "", "", false, "int64")
stockAmountSqlName := new(df.ColumnSqlName)
stockAmountSqlName.ColumnSqlName = "stock_amount"
stockAmountSqlName.IrregularChar = false
StockDbm.ColumnStockAmount = df.CCI(&stock, "stock_amount", stockAmountSqlName, "", "",
"Long.class", "stockAmount", "", false, false, true, "int8", 19, 0,
"", false, "", "", "", "", "", false, "int64")
versionNoSqlName := new(df.ColumnSqlName)
versionNoSqlName.ColumnSqlName = "version_no"
versionNoSqlName.IrregularChar = false
StockDbm.ColumnVersionNo = df.CCI(&stock, "version_no", versionNoSqlName, "", "",
//.........這裏部分代碼省略.........