-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Architectural opinions on Hibernate with Stored Procedures
PostPosted: Sun Dec 18, 2005 3:06 pm 
Newbie

Joined: Mon Sep 26, 2005 1:01 pm
Posts: 5
I decided to ask the experts, what they think of a company, the one I work for, no names, has decided to no longer have Criteria, HQL or SQL in any of our code, and that all our queries, inserts, updates, deletes will be done in stored procedures.

We will still be using Hibernate to call these stored procedures. I can see some benefit to putting any SQL code we have through hibernate into a stored procedure, but those other places where we just get the Session call save passing it some DTO or where the Criteria objects query takes only three lines of code is much easier to maintain than having the DBA team write stored procedures for all of them.

But, before I call them names, well too late for that, but, in this case, I haven't called them anything yet, but I wanted to know everyone's opinion, becuase I definitely don't have all the answers. :)

Thanks guys.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 18, 2005 6:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
some people like to put everything in stored procedures some don't. Some has valid reasons, some don't.

If everything is in stored procedures hibernate doesn't does much else than work like a nice way of managing the state of your java objects and unit of work....

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 3:01 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
It makes sence for "systems" (many applications connected to the same database), but it is better to use views for "stored SQL" if you are going to use reports (or maintain replica for reports).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.