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?
I too have faced with this problem, but all Long values converts into Integer ( I use "pk-sql") and I have reconciled