-->
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 Hibernate only for JDBC Connection
PostPosted: Mon Mar 13, 2006 10:18 am 
Newbie

Joined: Wed Feb 15, 2006 6:32 am
Posts: 2
Can i use Hibernate just for making JDBC Connection and getting a session and not using Hibernate for Object Relational Mapping. I want to use SQL after connection is made to database for returning rows from the database by using ResultSet in JDBC because in our case View tables are used for querying.When the View is created there are so many records which are retrieved and when we query on that view we reqire very few records so there are performance issues...So what i thought of using Hibernate for Connection and then without creating View using Sql to get the Resultset instead of getting objects(using Hibernate) as there is no information regarding the constaints used in the table so using mapping files would be peculiar thing to do(i guess so)
Can anybody help me out or suggest any other solution


Last edited by sameermiddha on Mon Mar 13, 2006 10:32 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 13, 2006 10:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
nothing prevents you from mapping an object to a view or use native sql queries and still get mapped objects.

if you are only going to use sql completely why then at all bother with configuring hibernate ?

_________________
Max
Don't forget to rate


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.