I had the same problem.
I tried to track it, and I've noticed that the
schema parameter in class
IncrementGenerator is null, if the
schema parameter was specified in the hbm descriptor.
In class
SimpleValue, line 108, I've noticed this comment:
Code:
//if the hibernate-mapping did not specify a schema/catalog, use the defaults
//specified by properties - but note that if the schema/catalog were specified
//in hibernate-mapping, or as params, they will already be initialized and
//will override the values set here (they are in identifierGeneratorProperties)
I can't find where the
schema parameter is set, can someone who knows the source code better then me shed some light on this ?