HQL like operator for case insensitive search

后端 未结 2 617
日久生厌
日久生厌 2021-02-05 04:08

I am implementing an autocomplete functionality using Jquery, when I type the name, it fetches the record from the db, The records stored in db are mixture of capital & smal

2条回答
  •  一生所求
    2021-02-05 04:42

    change your query to

    "from DataOrganization dataOrg where lower(dataOrg.poolName)   
    like lower('%"+ poolName +"%')"
    

    for more information have a look 14.3 doc

提交回复
热议问题