Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Customizable Query Result Sorter


I have a JPA query with IN statement. Something like this: SELECT e
FROM Entity e WHERE IN (3, 1, 2). I want to keep result order
same as the order specified in IN statement.

1. Is there any special hint to return this query in the same order as
specified in IN, i.e. = 3, = 1, = 2?
2. Is this possible to write a customized query result sorter in EclipseLink?


Back to the top