on 12-20-2006 3:35 PM
Hi everybody,
I have an entity bean (CPM) that has a timestamp field.
For a finder method I'd like to use the following EJB QL statement:
SELECT OBJECT(p) FROM MySchema AS p WHERE p.myTimestamp >= ?1
Unfortunally I receive an error during deployment from my WAS 700:
Incorrect QL query: SELECT OBJECT(p) FROM MySchema AS p WHERE p.myTimestamp >= ?1, errors: line 1: Comparison '>=' not defined for dependent objects
Has anybody an idea why the timestamp comparison leads to an error. On other J2EE application servers this works without any problems.
Regards,
Markus
Try checking EJB QL 2.1 compatibility in persistent.xml
You can define CMP field as Long too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.