本文整理匯總了Golang中github.com/mikeshimura/dbflute/df.UniqueInfo.Primary方法的典型用法代碼示例。如果您正苦於以下問題:Golang UniqueInfo.Primary方法的具體用法?Golang UniqueInfo.Primary怎麽用?Golang UniqueInfo.Primary使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/mikeshimura/dbflute/df.UniqueInfo
的用法示例。
在下文中一共展示了UniqueInfo.Primary方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Create_CustomerDbm
//.........這裏部分代碼省略.........
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, "", "",
"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
CustomerDbm.ColumnUpdateUser = df.CCI(&customer, "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
CustomerDbm.ColumnUpdateProcess = df.CCI(&customer, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
CustomerDbm.ColumnInfoList = new(df.List)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnId)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnCusCd)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnName)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnAddr)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnBldg)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnCusConSec)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnCusConName)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnTel)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnSalesAmount)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnVersionNo)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnDelFlag)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnRegisterDatetime)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnRegisterUser)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnRegisterProcess)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnUpdateDatetime)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnUpdateUser)
CustomerDbm.ColumnInfoList.Add(CustomerDbm.ColumnUpdateProcess)
CustomerDbm.ColumnInfoMap = make(map[string]int)
CustomerDbm.ColumnInfoMap["id"] = 0
CustomerDbm.ColumnInfoMap["cusCd"] = 1
CustomerDbm.ColumnInfoMap["name"] = 2
CustomerDbm.ColumnInfoMap["addr"] = 3
CustomerDbm.ColumnInfoMap["bldg"] = 4
CustomerDbm.ColumnInfoMap["cusConSec"] = 5
CustomerDbm.ColumnInfoMap["cusConName"] = 6
CustomerDbm.ColumnInfoMap["tel"] = 7
CustomerDbm.ColumnInfoMap["salesAmount"] = 8
CustomerDbm.ColumnInfoMap["versionNo"] = 9
CustomerDbm.ColumnInfoMap["delFlag"] = 10
CustomerDbm.ColumnInfoMap["registerDatetime"] = 11
CustomerDbm.ColumnInfoMap["registerUser"] = 12
CustomerDbm.ColumnInfoMap["registerProcess"] = 13
CustomerDbm.ColumnInfoMap["updateDatetime"] = 14
CustomerDbm.ColumnInfoMap["updateUser"] = 15
CustomerDbm.ColumnInfoMap["updateProcess"] = 16
CustomerDbm.PrimaryKey = true
CustomerDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &customer
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(CustomerDbm.ColumnId)
CustomerDbm.PrimaryInfo = new(df.PrimaryInfo)
CustomerDbm.PrimaryInfo.UniqueInfo = ui
CustomerDbm.SequenceFlag = true
CustomerDbm.SequenceName = "customer_id_seq"
CustomerDbm.SequenceIncrementSize = 1
CustomerDbm.SequenceCacheSize = 0
CustomerDbm.VersionNoFlag = true
CustomerDbm.VersionNoColumnInfo = CustomerDbm.ColumnVersionNo
var customerMeta df.DBMeta = CustomerDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["Customer"] = &customerMeta
}
示例2: Create_SalesSlipDbm
//.........這裏部分代碼省略.........
SalesSlipDbm.ColumnRegisterDatetime = df.CCI(&salesSlip, "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
SalesSlipDbm.ColumnRegisterUser = df.CCI(&salesSlip, "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
SalesSlipDbm.ColumnRegisterProcess = df.CCI(&salesSlip, "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
SalesSlipDbm.ColumnUpdateDatetime = df.CCI(&salesSlip, "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
SalesSlipDbm.ColumnUpdateUser = df.CCI(&salesSlip, "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
SalesSlipDbm.ColumnUpdateProcess = df.CCI(&salesSlip, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
SalesSlipDbm.ColumnInfoList = new(df.List)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnId)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnSlipNo)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnLine)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnSalesDate)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnSalesId)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnCusId)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnPrdId)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnQty)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnUnit)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnUnitPrice)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnSalesAmount)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnSlipAmount)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnSlipCons)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnVersionNo)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnDelFlag)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnRegisterDatetime)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnRegisterUser)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnRegisterProcess)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnUpdateDatetime)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnUpdateUser)
SalesSlipDbm.ColumnInfoList.Add(SalesSlipDbm.ColumnUpdateProcess)
SalesSlipDbm.ColumnInfoMap = make(map[string]int)
SalesSlipDbm.ColumnInfoMap["id"] = 0
SalesSlipDbm.ColumnInfoMap["slipNo"] = 1
SalesSlipDbm.ColumnInfoMap["line"] = 2
SalesSlipDbm.ColumnInfoMap["salesDate"] = 3
SalesSlipDbm.ColumnInfoMap["salesId"] = 4
SalesSlipDbm.ColumnInfoMap["cusId"] = 5
SalesSlipDbm.ColumnInfoMap["prdId"] = 6
SalesSlipDbm.ColumnInfoMap["qty"] = 7
SalesSlipDbm.ColumnInfoMap["unit"] = 8
SalesSlipDbm.ColumnInfoMap["unitPrice"] = 9
SalesSlipDbm.ColumnInfoMap["salesAmount"] = 10
SalesSlipDbm.ColumnInfoMap["slipAmount"] = 11
SalesSlipDbm.ColumnInfoMap["slipCons"] = 12
SalesSlipDbm.ColumnInfoMap["versionNo"] = 13
SalesSlipDbm.ColumnInfoMap["delFlag"] = 14
SalesSlipDbm.ColumnInfoMap["registerDatetime"] = 15
SalesSlipDbm.ColumnInfoMap["registerUser"] = 16
SalesSlipDbm.ColumnInfoMap["registerProcess"] = 17
SalesSlipDbm.ColumnInfoMap["updateDatetime"] = 18
SalesSlipDbm.ColumnInfoMap["updateUser"] = 19
SalesSlipDbm.ColumnInfoMap["updateProcess"] = 20
SalesSlipDbm.PrimaryKey = true
SalesSlipDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &salesSlip
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(SalesSlipDbm.ColumnId)
SalesSlipDbm.PrimaryInfo = new(df.PrimaryInfo)
SalesSlipDbm.PrimaryInfo.UniqueInfo = ui
SalesSlipDbm.SequenceFlag = true
SalesSlipDbm.SequenceName = "sales_slip_id_seq"
SalesSlipDbm.SequenceIncrementSize = 1
SalesSlipDbm.SequenceCacheSize = 0
SalesSlipDbm.VersionNoFlag = true
SalesSlipDbm.VersionNoColumnInfo = SalesSlipDbm.ColumnVersionNo
var salesSlipMeta df.DBMeta = SalesSlipDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["SalesSlip"] = &salesSlipMeta
}
示例3: Create_SessionDbm
//.........這裏部分代碼省略.........
"", 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)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnRegisterUser)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnRegisterProcess)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnUpdateDatetime)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnUpdateUser)
SessionDbm.ColumnInfoList.Add(SessionDbm.ColumnUpdateProcess)
SessionDbm.ColumnInfoMap = make(map[string]int)
SessionDbm.ColumnInfoMap["id"] = 0
SessionDbm.ColumnInfoMap["uuid"] = 1
SessionDbm.ColumnInfoMap["loginId"] = 2
SessionDbm.ColumnInfoMap["compId"] = 3
SessionDbm.ColumnInfoMap["data"] = 4
SessionDbm.ColumnInfoMap["versionNo"] = 5
SessionDbm.ColumnInfoMap["delFlag"] = 6
SessionDbm.ColumnInfoMap["registerDatetime"] = 7
SessionDbm.ColumnInfoMap["registerUser"] = 8
SessionDbm.ColumnInfoMap["registerProcess"] = 9
SessionDbm.ColumnInfoMap["updateDatetime"] = 10
SessionDbm.ColumnInfoMap["updateUser"] = 11
SessionDbm.ColumnInfoMap["updateProcess"] = 12
SessionDbm.PrimaryKey = true
SessionDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &session
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(SessionDbm.ColumnId)
SessionDbm.PrimaryInfo = new(df.PrimaryInfo)
SessionDbm.PrimaryInfo.UniqueInfo = ui
SessionDbm.SequenceFlag = true
SessionDbm.SequenceName = "session_id_seq"
SessionDbm.SequenceIncrementSize = 1
SessionDbm.SequenceCacheSize = 0
SessionDbm.VersionNoFlag = true
SessionDbm.VersionNoColumnInfo = SessionDbm.ColumnVersionNo
var sessionMeta df.DBMeta = SessionDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["Session"] = &sessionMeta
}
示例4: Create_ProductDbm
//.........這裏部分代碼省略.........
registerDatetimeSqlName.ColumnSqlName = "register_datetime"
registerDatetimeSqlName.IrregularChar = false
ProductDbm.ColumnRegisterDatetime = df.CCI(&product, "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
ProductDbm.ColumnRegisterUser = df.CCI(&product, "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
ProductDbm.ColumnRegisterProcess = df.CCI(&product, "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
ProductDbm.ColumnUpdateDatetime = df.CCI(&product, "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
ProductDbm.ColumnUpdateUser = df.CCI(&product, "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
ProductDbm.ColumnUpdateProcess = df.CCI(&product, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
ProductDbm.ColumnInfoList = new(df.List)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnId)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnPrdCd)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnPrdCat)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnName)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnCost)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnPrice)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnPerQty)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnUnit)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnPurQty)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnPurAmount)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnSalesQty)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnSalesAmount)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnVersionNo)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnDelFlag)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnRegisterDatetime)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnRegisterUser)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnRegisterProcess)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnUpdateDatetime)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnUpdateUser)
ProductDbm.ColumnInfoList.Add(ProductDbm.ColumnUpdateProcess)
ProductDbm.ColumnInfoMap = make(map[string]int)
ProductDbm.ColumnInfoMap["id"] = 0
ProductDbm.ColumnInfoMap["prdCd"] = 1
ProductDbm.ColumnInfoMap["prdCat"] = 2
ProductDbm.ColumnInfoMap["name"] = 3
ProductDbm.ColumnInfoMap["cost"] = 4
ProductDbm.ColumnInfoMap["price"] = 5
ProductDbm.ColumnInfoMap["perQty"] = 6
ProductDbm.ColumnInfoMap["unit"] = 7
ProductDbm.ColumnInfoMap["purQty"] = 8
ProductDbm.ColumnInfoMap["purAmount"] = 9
ProductDbm.ColumnInfoMap["salesQty"] = 10
ProductDbm.ColumnInfoMap["salesAmount"] = 11
ProductDbm.ColumnInfoMap["versionNo"] = 12
ProductDbm.ColumnInfoMap["delFlag"] = 13
ProductDbm.ColumnInfoMap["registerDatetime"] = 14
ProductDbm.ColumnInfoMap["registerUser"] = 15
ProductDbm.ColumnInfoMap["registerProcess"] = 16
ProductDbm.ColumnInfoMap["updateDatetime"] = 17
ProductDbm.ColumnInfoMap["updateUser"] = 18
ProductDbm.ColumnInfoMap["updateProcess"] = 19
ProductDbm.PrimaryKey = true
ProductDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &product
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(ProductDbm.ColumnId)
ProductDbm.PrimaryInfo = new(df.PrimaryInfo)
ProductDbm.PrimaryInfo.UniqueInfo = ui
ProductDbm.SequenceFlag = true
ProductDbm.SequenceName = "product_id_seq"
ProductDbm.SequenceIncrementSize = 1
ProductDbm.SequenceCacheSize = 0
ProductDbm.VersionNoFlag = true
ProductDbm.VersionNoColumnInfo = ProductDbm.ColumnVersionNo
var productMeta df.DBMeta = ProductDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["Product"] = &productMeta
}
示例5: Create_EmployeeDbm
//.........這裏部分代碼省略.........
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)
EmployeeDbm.ColumnInfoMap["id"] = 0
EmployeeDbm.ColumnInfoMap["empCd"] = 1
EmployeeDbm.ColumnInfoMap["secId"] = 2
EmployeeDbm.ColumnInfoMap["name"] = 3
EmployeeDbm.ColumnInfoMap["versionNo"] = 4
EmployeeDbm.ColumnInfoMap["delFlag"] = 5
EmployeeDbm.ColumnInfoMap["registerDatetime"] = 6
EmployeeDbm.ColumnInfoMap["registerUser"] = 7
EmployeeDbm.ColumnInfoMap["registerProcess"] = 8
EmployeeDbm.ColumnInfoMap["updateDatetime"] = 9
EmployeeDbm.ColumnInfoMap["updateUser"] = 10
EmployeeDbm.ColumnInfoMap["updateProcess"] = 11
EmployeeDbm.PrimaryKey = true
EmployeeDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &employee
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(EmployeeDbm.ColumnId)
EmployeeDbm.PrimaryInfo = new(df.PrimaryInfo)
EmployeeDbm.PrimaryInfo.UniqueInfo = ui
EmployeeDbm.SequenceFlag = true
EmployeeDbm.SequenceName = "employee_id_seq"
EmployeeDbm.SequenceIncrementSize = 1
EmployeeDbm.SequenceCacheSize = 0
EmployeeDbm.VersionNoFlag = true
EmployeeDbm.VersionNoColumnInfo = EmployeeDbm.ColumnVersionNo
var employeeMeta df.DBMeta = EmployeeDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["Employee"] = &employeeMeta
}
示例6: Create_LoginDbm
//.........這裏部分代碼省略.........
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)
LoginDbm.ColumnInfoMap["id"] = 0
LoginDbm.ColumnInfoMap["loginId"] = 1
LoginDbm.ColumnInfoMap["name"] = 2
LoginDbm.ColumnInfoMap["password"] = 3
LoginDbm.ColumnInfoMap["versionNo"] = 4
LoginDbm.ColumnInfoMap["delFlag"] = 5
LoginDbm.ColumnInfoMap["registerDatetime"] = 6
LoginDbm.ColumnInfoMap["registerUser"] = 7
LoginDbm.ColumnInfoMap["registerProcess"] = 8
LoginDbm.ColumnInfoMap["updateDatetime"] = 9
LoginDbm.ColumnInfoMap["updateUser"] = 10
LoginDbm.ColumnInfoMap["updateProcess"] = 11
LoginDbm.PrimaryKey = true
LoginDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &login
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(LoginDbm.ColumnId)
LoginDbm.PrimaryInfo = new(df.PrimaryInfo)
LoginDbm.PrimaryInfo.UniqueInfo = ui
LoginDbm.SequenceFlag = true
LoginDbm.SequenceName = "login_id_seq"
LoginDbm.SequenceIncrementSize = 1
LoginDbm.SequenceCacheSize = 0
LoginDbm.VersionNoFlag = true
LoginDbm.VersionNoColumnInfo = LoginDbm.ColumnVersionNo
var loginMeta df.DBMeta = LoginDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["Login"] = &loginMeta
}
示例7: Create_TestTableDbm
//.........這裏部分代碼省略.........
"", 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)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnRegisterUser)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnRegisterProcess)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnUpdateDatetime)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnUpdateUser)
TestTableDbm.ColumnInfoList.Add(TestTableDbm.ColumnUpdateProcess)
TestTableDbm.ColumnInfoMap = make(map[string]int)
TestTableDbm.ColumnInfoMap["id"] = 0
TestTableDbm.ColumnInfoMap["testId"] = 1
TestTableDbm.ColumnInfoMap["testDate"] = 2
TestTableDbm.ColumnInfoMap["testTimestamp"] = 3
TestTableDbm.ColumnInfoMap["testNbr"] = 4
TestTableDbm.ColumnInfoMap["versionNo"] = 5
TestTableDbm.ColumnInfoMap["delFlag"] = 6
TestTableDbm.ColumnInfoMap["registerDatetime"] = 7
TestTableDbm.ColumnInfoMap["registerUser"] = 8
TestTableDbm.ColumnInfoMap["registerProcess"] = 9
TestTableDbm.ColumnInfoMap["updateDatetime"] = 10
TestTableDbm.ColumnInfoMap["updateUser"] = 11
TestTableDbm.ColumnInfoMap["updateProcess"] = 12
TestTableDbm.PrimaryKey = true
TestTableDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &testTable
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(TestTableDbm.ColumnId)
TestTableDbm.PrimaryInfo = new(df.PrimaryInfo)
TestTableDbm.PrimaryInfo.UniqueInfo = ui
TestTableDbm.SequenceFlag = true
TestTableDbm.SequenceName = "test_table_id_seq"
TestTableDbm.SequenceIncrementSize = 1
TestTableDbm.SequenceCacheSize = 0
TestTableDbm.VersionNoFlag = true
TestTableDbm.VersionNoColumnInfo = TestTableDbm.ColumnVersionNo
var testTableMeta df.DBMeta = TestTableDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["TestTable"] = &testTableMeta
}
示例8: Create_SysTableDbm
//.........這裏部分代碼省略.........
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, "", "",
"String.class", "registerProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
updateDatetimeSqlName := new(df.ColumnSqlName)
updateDatetimeSqlName.ColumnSqlName = "update_datetime"
updateDatetimeSqlName.IrregularChar = false
SysTableDbm.ColumnUpdateDatetime = df.CCI(&sysTable, "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
SysTableDbm.ColumnUpdateUser = df.CCI(&sysTable, "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
SysTableDbm.ColumnUpdateProcess = df.CCI(&sysTable, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
SysTableDbm.ColumnInfoList = new(df.List)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnId)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnTableName)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnKey1)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnKey2)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnS1Data)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnS2Data)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnS3Data)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnN1Data)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnN2Data)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnN3Data)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnVersionNo)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnDelFlag)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnRegisterDatetime)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnRegisterUser)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnRegisterProcess)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnUpdateDatetime)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnUpdateUser)
SysTableDbm.ColumnInfoList.Add(SysTableDbm.ColumnUpdateProcess)
SysTableDbm.ColumnInfoMap = make(map[string]int)
SysTableDbm.ColumnInfoMap["id"] = 0
SysTableDbm.ColumnInfoMap["tableName"] = 1
SysTableDbm.ColumnInfoMap["key1"] = 2
SysTableDbm.ColumnInfoMap["key2"] = 3
SysTableDbm.ColumnInfoMap["s1Data"] = 4
SysTableDbm.ColumnInfoMap["s2Data"] = 5
SysTableDbm.ColumnInfoMap["s3Data"] = 6
SysTableDbm.ColumnInfoMap["n1Data"] = 7
SysTableDbm.ColumnInfoMap["n2Data"] = 8
SysTableDbm.ColumnInfoMap["n3Data"] = 9
SysTableDbm.ColumnInfoMap["versionNo"] = 10
SysTableDbm.ColumnInfoMap["delFlag"] = 11
SysTableDbm.ColumnInfoMap["registerDatetime"] = 12
SysTableDbm.ColumnInfoMap["registerUser"] = 13
SysTableDbm.ColumnInfoMap["registerProcess"] = 14
SysTableDbm.ColumnInfoMap["updateDatetime"] = 15
SysTableDbm.ColumnInfoMap["updateUser"] = 16
SysTableDbm.ColumnInfoMap["updateProcess"] = 17
SysTableDbm.PrimaryKey = true
SysTableDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &sysTable
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(SysTableDbm.ColumnId)
SysTableDbm.PrimaryInfo = new(df.PrimaryInfo)
SysTableDbm.PrimaryInfo.UniqueInfo = ui
SysTableDbm.SequenceFlag = true
SysTableDbm.SequenceName = "sys_table_id_seq"
SysTableDbm.SequenceIncrementSize = 1
SysTableDbm.SequenceCacheSize = 0
SysTableDbm.VersionNoFlag = true
SysTableDbm.VersionNoColumnInfo = SysTableDbm.ColumnVersionNo
var sysTableMeta df.DBMeta = SysTableDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["SysTable"] = &sysTableMeta
}
示例9: Create_StockDbm
//.........這裏部分代碼省略.........
"", false, "", "", "", "", "", false, "df.Timestamp")
registerUserSqlName := new(df.ColumnSqlName)
registerUserSqlName.ColumnSqlName = "register_user"
registerUserSqlName.IrregularChar = false
StockDbm.ColumnRegisterUser = df.CCI(&stock, "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
StockDbm.ColumnRegisterProcess = df.CCI(&stock, "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
StockDbm.ColumnUpdateDatetime = df.CCI(&stock, "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
StockDbm.ColumnUpdateUser = df.CCI(&stock, "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
StockDbm.ColumnUpdateProcess = df.CCI(&stock, "update_process", updateProcessSqlName, "", "",
"String.class", "updateProcess", "", false, false, true, "varchar", 30, 0,
"", false, "", "", "", "", "", false, "string")
StockDbm.ColumnInfoList = new(df.List)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnId)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnYyyymm)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnPrdId)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnName)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnCost)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnPrice)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnUnit)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnBeforeQty)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnPurQty)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnRcvQty)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnSalesQty)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnOutQty)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnStockQty)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnStockAmount)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnVersionNo)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnDelFlag)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnRegisterDatetime)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnRegisterUser)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnRegisterProcess)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnUpdateDatetime)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnUpdateUser)
StockDbm.ColumnInfoList.Add(StockDbm.ColumnUpdateProcess)
StockDbm.ColumnInfoMap = make(map[string]int)
StockDbm.ColumnInfoMap["id"] = 0
StockDbm.ColumnInfoMap["yyyymm"] = 1
StockDbm.ColumnInfoMap["prdId"] = 2
StockDbm.ColumnInfoMap["name"] = 3
StockDbm.ColumnInfoMap["cost"] = 4
StockDbm.ColumnInfoMap["price"] = 5
StockDbm.ColumnInfoMap["unit"] = 6
StockDbm.ColumnInfoMap["beforeQty"] = 7
StockDbm.ColumnInfoMap["purQty"] = 8
StockDbm.ColumnInfoMap["rcvQty"] = 9
StockDbm.ColumnInfoMap["salesQty"] = 10
StockDbm.ColumnInfoMap["outQty"] = 11
StockDbm.ColumnInfoMap["stockQty"] = 12
StockDbm.ColumnInfoMap["stockAmount"] = 13
StockDbm.ColumnInfoMap["versionNo"] = 14
StockDbm.ColumnInfoMap["delFlag"] = 15
StockDbm.ColumnInfoMap["registerDatetime"] = 16
StockDbm.ColumnInfoMap["registerUser"] = 17
StockDbm.ColumnInfoMap["registerProcess"] = 18
StockDbm.ColumnInfoMap["updateDatetime"] = 19
StockDbm.ColumnInfoMap["updateUser"] = 20
StockDbm.ColumnInfoMap["updateProcess"] = 21
StockDbm.PrimaryKey = true
StockDbm.CompoundPrimaryKey = false
ui := new(df.UniqueInfo)
ui.DbMeta = &stock
ui.Primary = true
ui.UniqueColumnList = new(df.List)
ui.UniqueColumnList.Add(StockDbm.ColumnId)
StockDbm.PrimaryInfo = new(df.PrimaryInfo)
StockDbm.PrimaryInfo.UniqueInfo = ui
StockDbm.SequenceFlag = true
StockDbm.SequenceName = "stock_id_seq"
StockDbm.SequenceIncrementSize = 1
StockDbm.SequenceCacheSize = 0
StockDbm.VersionNoFlag = true
StockDbm.VersionNoColumnInfo = StockDbm.ColumnVersionNo
var stockMeta df.DBMeta = StockDbm
df.DBMetaInstanceHandler_I.TableDbNameInstanceMap["Stock"] = &stockMeta
}