posted 15 years ago
Sunil, suppose that you are using hibernate as you persistence provider and that we have the following SP:
Now you might define a named native query so that it remains callable by using a hint (in annotation):
Now you can use JPA API to get the result:
It works as well with scalar projections...
[]s,
Victor Dolirio
If happen something bad in you life, don't ask God why it happened. Ask for what.
SCJP 5 (80%) - SCWCD 5 (91%) - SCBCD & SCJD coming soon...