Hi JT,
may thanks for your help!
jt_1000 wrote:
1) the return type in your sql-query is probably not right... it should be long or double, string...
the return type should be correct.
jt_1000 wrote:
2) the setParameter looks off too what is 0.1?
try using something like setDouble(0,4.5); where "0" is the first parameter in your list that you are passing to the function. and 4.5 is the value.
in my code i hade writen: .setParameter(0,1), because the in parameter is an bigint.
jt_1000 wrote:
3) also with Oracle I had to return a result set (and put the numeric value in col of the select), and not a direct number... not sure if this will apply with your dbms.
for mysql it doesnt works, but i try it with postgresql + db2.
JT could you send me your NamedQueries.hbm.xml or mapping and your java code to show me how its work, please.
Many thank once again!!!
Tim