Hugh Allen
2014-07-29 12:37:12 UTC
Hi,
Hope we have some Oracle/JPA experts out there, because Google searches are not showing me the answer.
After using MySQL and SQL Server exclusively for years, we are now porting our Java EJB3/JPA app to Oracle, based on requirements from a client.
Thought this would be a snap but no such luck. Oracle OWNS Java, for crying out loud. How hard could this be???
So I guess this is an Oracle newbie question.
1) Resolved the 30 character limit on column names by changing JPA
2) Resolved Oracle's inability to distinguish between NULL and Empty String. (Oracle calls an Empty String an IMPOSSIBLE VALUE! But in fact it is very possible and the DEFAULT in the app, which has NOT NULL for all strings.)
3) But now *CASE SENSITIVE Queries* are the problem. By default all Oracle queries are Case Sensitive! This is a ridiculous default, and there must be some way around it???
Discovered there is an Oracle setting for NLS_COMP but this is a SESSION parameter and JPA can not control Oracle Sessions? How can this be accomplished?
Guessing many of you use Oracle. Any help on setting up Case IN-SENSITIVE searches in Oracle?
Without changing all the queries to use LOWER()?
Thanks, Hugh
Hope we have some Oracle/JPA experts out there, because Google searches are not showing me the answer.
After using MySQL and SQL Server exclusively for years, we are now porting our Java EJB3/JPA app to Oracle, based on requirements from a client.
Thought this would be a snap but no such luck. Oracle OWNS Java, for crying out loud. How hard could this be???
So I guess this is an Oracle newbie question.
1) Resolved the 30 character limit on column names by changing JPA
2) Resolved Oracle's inability to distinguish between NULL and Empty String. (Oracle calls an Empty String an IMPOSSIBLE VALUE! But in fact it is very possible and the DEFAULT in the app, which has NOT NULL for all strings.)
3) But now *CASE SENSITIVE Queries* are the problem. By default all Oracle queries are Case Sensitive! This is a ridiculous default, and there must be some way around it???
Discovered there is an Oracle setting for NLS_COMP but this is a SESSION parameter and JPA can not control Oracle Sessions? How can this be accomplished?
Guessing many of you use Oracle. Any help on setting up Case IN-SENSITIVE searches in Oracle?
Without changing all the queries to use LOWER()?
Thanks, Hugh