A: 

Maybe have a look at the EclipseLink extensions for Stored Procedure Query. Note that JPA extensions are obviously not portable, like oracle specific types (so this defeats JPA twice).

Pascal Thivent
Thanks Pascal! I already went through this link but was not able to get much out from this.
MAK
@MAK Maybe you should add more concrete details to your question. It's too abstract in its current state (at least for me).
Pascal Thivent
I added more details, please take a look at this.
MAK