Using stored procedures or ORM

Question posted in Computer Software on 07 2010
Rate question difficulty level 0 Votes
Do you think it's better to use stored procedures over ORM/hibernate or the opposite ?
Please specify why would you rather one over the other ?
 
 
3 Answers
 
Sorry but what is ORM/hibernate ? Object-Relational-Model?

07/18/2010
 
 
ORM - Object-relational mapping (ORM, O/RM, and O/R mapping) in computer software is a programming technique for converting data between incompatible type systems in object-oriented programming languages. This creates, in effect, a "virtual object database" that can be used from within the programming language. There are both free and commercial packages (for example hibernate) available that perform object-relational mapping, although some programmers opt to create their own ORM tools.

credits : http://en.wikipedia.org/wiki/Object-relational_mapping

07/18/2010
 
 
I've had the change to work with both , and there's no simple answer.
Part of designing your system is trying to answer this question.

Basically, if your database is rather simple and does not contain a lot of entities and relations, you might consider going with the old fashion stored procedures and queries.

If not, as part of the ERD design , you should consider at some point a solution involving an ORM.

07/19/2010
 
 
Add an answer*
 
Your name
Email
 
Company: SolarEdge
Location: Israel
database db sql

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
Mercer 
---------------------------
---------------------------
---------------------------