Postgres的Hibernate不区分大小写的连接

时间:2014-11-26 15:28:00

标签: java hibernate postgresql

我正在寻找一种方法,让hql生成的sql使用upper或lower作为连接的比较。例如,如果我有

from EntityA a join fetch a.b

生成

... join table b on a.fk = b.pk

我会喜欢

... join table b on upper(a.fk) = upper(b.pk); 

我尝试使用postgres列citext,这使得它们不区分大小写,但这导致了hibernate的懒惰提取问题,这是我无法弄清楚的。因此,我想尝试改变冬眠行为。

0 个答案:

没有答案
相关问题