Re: Primary key is set to the foreign key value

levko <[email protected]> Sun, 6 Sep 2009 05:32:43 -0700 (PDT)
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <[email protected]>
Thanks everybody for useful suggestions. 

Actually, the tables I use have more complicated structures (each table has
it's own id key, etc.). I just wanted to understand why the char field.
which I defined as PK, is automatically filled with int value by the
idBroker. I believe, it's not intuitive behavior - I expected that idBroker
would, at least, check that the object I create and save already has PK
field set and would not generate new id automatically. 

In any case, the idMethod="none" attribute makes it more flexible.

Thanks again,
-- Lev
-- 
View this message in context: http://www.nabble.com/Primary-key-is-set-to-the-foreign-key-value-tp25283761p25317361.html
Sent from the Apache DB - Torque Users mailing list archive at Nabble.com.