Nov 15th, 2012, 05:18 PM
database reverse engineering with string fixed length primary key hibernate and mysql
I am using roo's database reverse engineering with a class that has a string of fixed length as the primary key
I am also using hibernate and mysql
I'm an getting an error that that field can not be null, it seems that a key is not being generated automatically, where should I look for my problem?
Nov 18th, 2012, 03:34 PM
Ok I found my problem in that mysql does not generate automatically string primary keys. That AUTO-INCREMENT does not apply on strings.
Originally Posted by melutovich
NEW question, is there a way to tell roo that these primary keys should be exposed on the user interface so that I can manually specify a PK at time of creation?