db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Lustig" <m...@marclustig.com>
Subject how to set the PK manually?
Date Thu, 06 Feb 2003 18:20:50 GMT

I'm creating a new instance (row) and set the PK to a certain value.
(I need to do this because this table B extends another table A, so the PK
in table B must be the same as in table A.)

My defaultIdMethod is "idbroker":
<database defaultIdMethod="idbroker"...

And to make torque not generating the PK I set idMethod="none":
<table name="B" idMethod="none">

Problem is when I trigger save() torque still generates a new PK and assigns
it. How comes that?
How can I make torque not to auto-generate a new primary key when save() is



View raw message