-->
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.  [ 2 posts ] 
Author Message
 Post subject: Using JDBC with Hibernate
PostPosted: Sun Jul 23, 2006 10:09 pm 
Newbie

Joined: Mon Oct 17, 2005 4:10 am
Posts: 6
Hi

I am new to hibernate. Can someone please shed light on some of my doubts?

1) what is the difference between developing a web application using Hibernate and without using Hibernate?

2) I want to know how we can integrate Hibernate into a web application..

3) Is there any need of JDBC if we use Hibernate? and how can we use JDBC in a web application using hibernate?(need some details reg this)..

Rgds,
Jim


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 24, 2006 1:03 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
  1. If you don't use an ORM then you have to think about result sets, referential integrity, datebase data types, and all sorts of other non-business-logic related stuff. If you do use an ORM like hibernate.. you don't.
  2. Check out the wiki on the hibernate web site, there's plenty of info there.
  3. Sometimes plain old JDBC is better than an ORM. Certain kinds of report queries, certain kinds of bulk updates, and accessing certain DBMS-specific features can be tricky to get right in a framework designed mostly for converting objects to DB rows. So you use JDBC directly. The best way to do that with hibernate is simply to call connection() on the current hibernate session.

_________________
Code tags are your friend. Know them and use them.


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