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
change your query to
"from DataOrganization dataOrg where lower(dataOrg.poolName) like lower('%"+ poolName +"%')"
for more information have a look 14.3 doc