In Hibernate 3.0, the main effect of callable="true" was to require an unused return parameter. So remove the callable="true" (which isn't needed).
If you really have written the code that you posted, you might also get someone to proof read it. I don't know what the second parameter of your "findByNamedQuery" method is, but it's almost certainly not a single Long. Even if it was, why did you allocate a new Object then immediately discard it?
_________________ Code tags are your friend. Know them and use them.
|