1 Reply Latest reply on Jun 25, 2003 9:05 AM by Dmitry Mozheyko

    Unkown Primary Key and CMP getting Long but hoped for Intege

    crbaker Newbie

      I have a CMP entity using MySQL database. Due to an existing application running of the table I need to use the auto-increment of MySQL to generate my primary keys.
      I have no problems getting this to work only problem is that when I request the primary key from the entity context object it returns the key as a Long. My deployment descriptor has the class of primary key as Integer and the MySQL datatype is integer(11). I using the entity command 'mysql-get-generated-keys'

      Does anyone have any ideas?