Hi, I've been googling around for a straight-forward solution on getting our new postgresql + hibernate setup working with case insensitive search, without luck. We had previously been using mysql which has a policy on case insensative searching however Postgresql seems to lack this.
For example, I'd like Hibernate/Postgresql to return the same result for each of the below:
SELECT * FROM Foo where bar = 'Hello World';
and
SELECT * FROM Foo where bar = 'hello wOrlD';
The only solution I've found is to somehow embed an 'ilike' keyword into the resulting queries, however you'd think there'd be some kind of configuration in Hibernate that would cater for this? My experience with Hibernate and Postgresql is limited, so any input would be appreciated.
Thanks