Hello. I'd like to implement a finder method (on Websphere 4.0) that accepts primitive type object wrappers, example: findByLongNum(java.lang.Long num) This may then enable me to search the DB for NULL values. However, it seems Websphere 4.0 will only accept finder methods with primitive signatures. Am I correct? Does anyone know of a way round this limitation?
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.
Thank you my well lotioned goddess! Here, have my favorite tiny ad!