Hi Cedric,
This feature works for me, and if you take a look at the MySQLDialect you will see the next method
Quote:
public String getIdentityColumnString() {
return "not null auto_increment"; //starts with 1, implicitly
}
The only thing I can think of it that your runtime environment is mis-configured and still using the
old Hibernate jars.
For example if your application runs on JBOSS 4.0.3SP1 and lower it will not see the new Hibernate classes (even if you deploy it with your application) since it has its own copy of hibernate jars under
<jboss home>/server/<server root>/lib.
If this is the case then it will look for the
old style annotations. It means that it will look for something like @Id(generate=GeneratorType.AUTO) and it
will ignore annotations in the new format.
Eyal Lupu