-->
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: creating POJO every time I have to use native sql ?
PostPosted: Thu Jan 27, 2005 6:47 am 
Beginner
Beginner

Joined: Thu Jan 20, 2005 1:45 pm
Posts: 49
Hi all
I wonder if I use <sql-query> with a native sql inside, I have to specify a specific POJO for retrivining all the columns or It's enough getting the list and after that acting as with HQL.
I do not want create a POJO every time I have to use native sql inside an hbm mapping file.
Exists any alternative?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 27, 2005 7:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Yes, use session.connection()


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 27, 2005 7:50 am 
Beginner
Beginner

Joined: Thu Jan 20, 2005 1:45 pm
Posts: 49
Could u be more specific?
I found nothing about using session.connection() for executing native sql in embedded xml.
I read all hibernate doc released.Could u point me usefull link?
Regards


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.