Hi.
Is torque(and PostgreSQL) work with multiple primaryKeys per table?
I create below schema, and I try Service.save() to insert new Service
record.
But I met "java.lang.ClassCastException: java.math.BigDecimal" at
BaseService.setPrimaryKey().
I using idbroker method to generate IDs.
Schema:
<table name="Service">
<column name="ServiceId"
primaryKey="true"
required="true"
autoIncrement="true"
type="INTEGER"/>
<column name="OtherTableId"
primaryKey="true"
required="true"
type="INTEGER"/>
<column name="RegisterDate"
required="false"
type="TIMESTAMP"/>
<foreign-key foreignTable="OtherTable">
<reference local="OtherTableId" foreign="OtherTableId"/>
</foreign-key>
</table>
<table name="OtherTable">
<column name="OtherTableId"
primaryKey="true"
required="true"
autoIncrement="true"
type="INTEGER"/>
<column name="Name"
required="true"
type="CLOB"/>
</table>
thanks.
------------------------------------------------[ Serverworks ]-------
OGURA Junya
* Serverworks Co,. Ltd.
* e-mail: [EMAIL PROTECTED]
* website: http://www.serverworks.co.jp/
* fingerprint: 717D 13BD FB8B C58C 5266 913B 6BD8 CB35 E27D A80E
----------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>