Eduard Barbu wrote:
Well, meanwhile I solved the problem by setting the generator class to increment. The native generator does not work!
Regards!
Eduard
I think you need to read the docs about exactly what specifying "native" does. It's not type of generator in itself, it just defaults to one of several depending on the DB being used. You still need to configure those properly.
native - picks identity, sequence or hilo depending on the underlying capabilities of the database.
MySQL supports identity columns but you have to have your table defined properly.
I don't think it supports sequences and the hilo generator requires additional configuration in your mapping.