Is ORM (hibernate, JPA) Effective for calling Stored Procedures?
posted 3 years ago
I've used JPA and hibernate when I had control over the database and could automate the propagation of my changes to my java code to the database. Very cool.
Put let us suppose that I need to use stored procedures for CRUD in my new project. Is ORM (hibernate or JPA) going to be as effective? I've never called stored procedures from java before and the JDBC examples I have seen look extremely tedious. Can an ORM make calling stored procedures easier? Is there some other technology -- should I consider iBatus?
Simplifying calling stored procedures is not a problem ORM's set out to address. You can call stored procedures with an ORM but it tends to be more restrictive then straight JDBC, depending out how complex your SPROC is. I think if your CRUD stuff is going to be all stored procedures I would not choose an ORM.