Hello,
this may be the solution, if you are using a schema for your tables:
http://forum.hibernate.org/viewtopic.php?t=930484&highlight=schema+generator
Topic: generator doesen't respect schema of table
had the same problem myself...
this bug seems to be known, but they won't fix 'em. too bad!
the generator doesn't respect the schema of your table and this way the userid is used as schema name instead.
this way it works:
Code:
<generator class="increment">
<param name="schema">XXX</param>
</generator>
greetings
bastian