You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Bill <bh...@collaborativefusion.com> on 2003/02/07 17:57:50 UTC

User object pk return type

I realize this is likely more apropos to the torque list but when the
list was moved my subscription wasnt, and the links on the web are still
pointing to the defunct list.

Onto my question:  The primary key of a User object is an ObjectKey. 
ObjectKey has a KEY field which is an Object.  Now my understanding was
that the KEY field held a java object analogous to the datatype of the
column in the database, but getPrimaryKey().getValue() returns an object
of type BigDecimal for a column that is of sqltype integer.  Can
somebody tell me what piece of the puzzle I am missing or have confused?

I'm finishing up my migration to 2.2 and at the request of my partner,
am moving the OM layer over to using Objects instead of primitives.  I
have several Objects that use the primary key of the associated User as
their own key.  In 2.1 I was able to set these keys without conversion,
but now I get a cast exception.  I understand how to fix the problem, I
just want to understand better what is happening under the sheets.

-b  




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org