-->
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.  [ 4 posts ] 
Author Message
 Post subject: Is Hibernate suitable only for lookup queries?
PostPosted: Tue Oct 18, 2005 7:00 am 
Newbie

Joined: Wed Sep 07, 2005 10:32 am
Posts: 2
Hello,

I am trying to evaluate Hibernate for a reporting project which involves complex 4-5 production queries.
Currently we use in house db control built on top of RowsetDynabeans.
Is hibernate a candidiate for these simple queries where no persistance involved. Also instead of HQL, can I use the queries provided by DBA as it is? Any experience of using OSCache with Hibernate? Thank you for your replies.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 11:29 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
Easiest question first. You can use your sql queries that you already have written in hibernate.

Loaded question second. It depends on how much time you have to implement hibernate for your needs. Understanding how to replicate relationships that exist in your database in hibernate can be confusing. and time consuming.

If you desire query results in the form of easily navigable java objects, then yes, hibernate is very good at that.

There are too many other benefits of hibernate to list here.

There are also a lot of reasons why using hibernate would NOT be a good choice too.

alot of it depends on what your database looks like and what functionality you desire from a db layer such as hibernate.

another option would be IBATIS sqlmaps, if you want to look that up

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 7:33 am 
Newbie

Joined: Wed Sep 07, 2005 10:32 am
Posts: 2
Thanks a lot. I will evaluate SQLMap besides Hibernate. Since it is only 4-5 complex select only queries, I will implement SQLMap instead of Hibernate. Thanks again for your suggestion.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 8:29 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Hibernates native SQL support is less verbose than iBatis SQL maps and much more powerful.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.