Quote:
Do you use "sequence" generator in other mappings as well? If so, do they work there?
You have probably reasons why to use "sequence". As I am using a database which does not support sequence, I cannot reproduce it.
But maybe you can try to use "native" (more portable) and long instead of java.lang.Integer?
Just a proposal (maybe a workaround)
Urs
I tried to use native, in PostgreSQL it also generates sequence,so in this way i think it is useful to directly tell Hibernate what to use. Long type is no use instead of writing me
ERROR [BasicPropertyAccessor] expected type: java.lang.Integer, actual value: java.lang.Integer
it is writing
ERROR [BasicPropertyAccessor] expected type: java.lang.Long, actual value: java.lang.Long
Quote:
Did you define an Integer type somewhere?
please try also (although it seems correct) to set the type in the mapping to
type="integer"
What do you mean define an Integer somewhere, it is java.lang.Integer isn't it? With type="integer" I get the same exception :(