I opened a ticket to reconfigure our DB2 9.7 instance. Actually I can't reproduce it on 10.5. Anyway I'm pretty sure this is not a bug in Hibernate.