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?