Mauromartini,
this is not a bug - in PostgreSQL you need to quote your identifiers in order to preserve the upper casing. You say that your mapping file does have the names in uppercase, but I imagine that they are missing the quotes. Hibernate accommodates this:
Quote:
You may force Hibernate to quote an identifier in the generated SQL by enclosing the table or column name in backticks in the mapping document.
http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-quotedidentifiers
I did find that the backtick did not work for the schema or sequence names (if you are using uppercase names) - so I resorted to using the standard xml predefined entity for a quote (") for those cases:
Code:
<generator class="sequence">
<param name="sequence">"MYSCHEMA"."MYSEQUENCE"</param>
</generator>
This all works well for me.
Grainne.