-->
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: Oracle Gtt tables in Hibernate
PostPosted: Thu Nov 07, 2013 1:39 am 
Newbie

Joined: Thu Nov 07, 2013 1:16 am
Posts: 2
What i have to do is that i have to insert some data in Oracle Temporary Table (GTT table) and then have to call a function which uses that table and returns an table of object.?

the problem with Gtt tables is that they are session specific and so when i use session.createQuery().save();
it saves that object in table . But when i call that function then it does not find any record in gtt table .?
Because may be the session uses different connection object every time so i am kinda stucked with this .

Please tell me any way to implement this in hibernate ??


Top
 Profile  
 
 Post subject: Re: Oracle Gtt tables in Hibernate
PostPosted: Thu Nov 07, 2013 2:25 am 
Newbie

Joined: Thu Nov 07, 2013 1:16 am
Posts: 2
When i do like
Retrieve connection object --- java.sql.Connection con = ((SessionImpl) session).connection();

The use prepared statement to insert record
and callable to ececute function then it works absolutely fine ..


But is this a hibernate way to do things ???


Please reply soon


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.