-->
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: Access Oracle sequence using HQL
PostPosted: Tue Feb 21, 2006 2:46 pm 
Newbie

Joined: Fri Jul 15, 2005 9:30 am
Posts: 13
I need to get the primary id from an Oracle sequence in order to display on the page even before inserting.

The sql I need to execute is: SELECT seq_blah.NEXTVAL FROM DUAL

on my hbm.xml, I had set the primary key generate is assigned.

How do I execute the above sql using hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 2:51 pm 
Newbie

Joined: Fri Jul 15, 2005 9:30 am
Posts: 13
I found the answer


Top
 Profile  
 
 Post subject: Re: Access Oracle sequence using HQL
PostPosted: Mon Jul 27, 2009 4:19 am 
Newbie

Joined: Mon Jul 27, 2009 4:17 am
Posts: 1
Can you shared me your solution? I have the same problem


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.