コード例 #1
0
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, "", "",
		"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
0
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, "", "",
		"Integer.class", "delFlag", "", false, false, true, "int4", 10, 0,
		"0", false, "", "", "", "", "", false, "int64")
	registerDatetimeSqlName := new(df.ColumnSqlName)
	registerDatetimeSqlName.ColumnSqlName = "register_datetime"
	registerDatetimeSqlName.IrregularChar = false
	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
0
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)
	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
0
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, "", "",
		"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
0
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)
	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
0
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)
	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
0
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)
	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
0
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, "", "",
		"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
0
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, "", "",
		"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
	StockDbm.ColumnDelFlag = df.CCI(&stock, "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
	StockDbm.ColumnRegisterDatetime = df.CCI(&stock, "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
	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
}