Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JPQL sorting (ORDER BY) results - case insensitive

582113Jun 8 2007
I have the following code that creates a Query Object and gives me an order for my results:

EntityManager em = getEntityManager();
try{
Query q = em.createQuery("SELECT t FROM table_name t ORDER BY t.fieldName");

which works, except I'd like my sorted results to be case insensitive...

you know, in the order:

a
A
b
c
C
d
e
E

not

a
b
c
d
e
A
C
E

but I'm really at a loss how to perform this using JPQL in my TopLink application.

any ideas??

Thanks!
-Russ
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2007
Added on Jun 8 2007
0 comments
781 views