Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Non-Orderable Types

Hi,

I'm getting the following exception on an ORDER BY clause. It seems
that Boolean fields are not orderable. I've checked spec (JPA 1.0) and
seen nothing about (non) orderable types there.

Exception Description: Error compiling the query [SELECT m FROM
MyObject m  ORDER BY m.result desc ], line 1, column 36: invalid ORDER
BY item [m.result] of type [java.lang.Boolean], expected expression of
an orderable type.


Thanks in advanced.
Mohsen.


Back to the top