Category Archives: Hibernate

Grails and Microsoft SQL Server – Not so painless when using Unique Constraints – A Pragmatic Work-Around

When porting your Grails application from just about any database to MS SQL Server, four areas come to my mind that require your immediate attention: Primary key generation strategy (not covered here) Case sensitivity and collation issues (not covered here) … Continue reading

Posted in English, Grails, Hibernate | 1 Comment

How to persuade Hibernate to accept Nullable Timestamp Columns for Optimistic Locking

Working on a Grails project that needs to access a legacy database, it proved quite time-consuming to implement optimistic locking in a way that can be handled by Hibernate. Optimistic locking used to be implemented within (legacy) application code and … Continue reading

Posted in English, Hibernate | Leave a comment