It is not directly possible. The reason is because hibernate is not designed from the point of view of offering access to data stored in databases: it is designed to allow you to persist java objects to databases. More top-down than bottom-up, as it were. That it offers simple access to result sets that don't completely map to your POJOs is a nice bonus, it isn't part hibernate's raison d'etre.
It is possible to use hibernate to access the result sets returned by your stored procedures, and then to write your own logic to put those result sets into java objects. You can then use those objects to save back to the DB, assuming that they have sensible values for all columns.
|