-->
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: Querying auto-generated table values
PostPosted: Fri Jun 10, 2011 1:47 pm 
Newbie

Joined: Fri Jun 10, 2011 1:43 pm
Posts: 1
I am using a table generator for managing the ids of a particular entity, in part because I need to be able to periodically query what the next id will be. The generator works perfectly and the table is created and updated correctly, but I am not clear on how to actually query that table. Since it is not mapped to anything (or if it is, I don't understand the mapping between it and its 'parent' entity), do I have to do the query using raw SQL instead of the Hibernate API or HQL? If so, what is the current preferred way to create such a query?


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.