-->
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: Executing simple non-mapped SQL
PostPosted: Fri Jun 10, 2005 3:18 pm 
Beginner
Beginner

Joined: Thu Jun 09, 2005 2:33 pm
Posts: 30
I'm in the process of refactoring a dao with a jdbc implementation to hibernate. In the dao there are some simple queries that don't have associated pojo's. In this case, where I want to execute a simple select statement, possibly even to just ping the database, do I need to get the connection form the session and use the jdbc api?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 3:29 pm 
Regular
Regular

Joined: Thu Jul 08, 2004 1:21 pm
Posts: 68
Location: Recife - Pernambuco - Brazil
No, you don't need to use connection and plain jdbc. Please, read docs about query that returns tuples:
http://www.hibernate.org/hib_docs/v3/re ... ing-tuples

valeuz...

_________________
Marcos Silva Pereira
http://blastemica.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 4:57 pm 
Beginner
Beginner

Joined: Thu Jun 09, 2005 2:33 pm
Posts: 30
Well, I'm getting errors due to the fact I'm treying to execute a query on a table that isn't mapped.


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.