Understanding Pks:

From: Adrian (kadrianu..ahoo.com)
Date: Tue Jul 22 2003 - 23:27:30 EDT

  • Next message: Andrus Adamchik: "Re: Understanding Pks:"

    This is a basic question but I don know how to handle it:
     
    I.e. ...if a I have a table STATES, that table has two fields: ID_STATE and NAME...
    ID_STATE is the PK field and it is autogenerated using cayenne pk generation support.
     
    The modeler generates a class with only the name attribute (pk fields doesn't get reflected on class generation)....My question is: if i.e. I want to populate a combo with all the values of this table and I want to label the option with the field NAMEbut set the option's real value with ID_STATE field value...how can I get this value from the class if I the modeler doesn't create a proper attribute and its getter/setter methods...surely I'am missing something...any help will be appreciated...Thx in advance!

    ---------------------------------
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software



    This archive was generated by hypermail 2.0.0 : Tue Jul 22 2003 - 23:25:21 EDT