-->
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.  [ 1 post ] 
Author Message
 Post subject: Stored Procedure that doesn't map to a table
PostPosted: Fri Oct 02, 2015 3:04 pm 
Newbie

Joined: Fri Oct 02, 2015 2:54 pm
Posts: 1
I am trying to call a stored procedure in Hibernate. The procedure creates a temp table where it stores complex calculations that it does for a report. The calculations require too much data to bring the records back and perform the routines in (Java) code. The last statement in the stored proc retrieves the single row from the temp table to give the calculations to my code.

Every example I see for stored procs from Hibernate shows a data set that maps to a real table. I don't want that. I need to map my data to an object that doesn't map to a table. The data is never going to be saved. In fact, the calculations are only valid at the time they are done. If I saved them, they would be potentially dirty data.

Is there a way to do this in Hibernate without tricking it into think I have a persistent table?

Thanks in advance!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.