cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JPA - case-insensitive search

Former Member
0 Kudos

Hi there, is it possible to have a case-insensitive search with SAP JPA? The keywords UPPER, LOWER aren't available in the query (OpenSQL limitation I guess).

The only way I see is to create a duplicates columns for the search relative atributes and make the data upper or lower case before save. May be there is another options? More suitable and elegant?

Accepted Solutions (1)

Accepted Solutions (1)

rolf_paulsen
Active Participant
0 Kudos

Hi,

you may bypass openSQL by native queries.

Make sure that you use the hint described in

http://help.sap.com/saphelp_nwce72/helpdata/en/4a/0cf02870c540caab611d56220ec0cb/frameset.htm

together with createNativeQuery.

But anyway, the approach with duplicates columns enables you to create indexes on these UPPER columns. It is not too bad.

Regards,

Rolf

Former Member
0 Kudos

Thank you!

That helps even without native query.

BTW, I can create indices and on the original columns.

Answers (0)