Hi,
That is not true. You can give any data type (like
String, Date, Timestamp, etc). I had done it before with String and Date object types as input to finder methods.
If you can post the error message, I can tell you more. Make sure your data type mappings are correct. For long
java type, the correct sql type is BIGINT (in DB2). Check it for your DB...
Thanks,
Malar.