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: Auto generate id column
PostPosted: Mon Dec 11, 2006 4:39 am 
Beginner
Beginner

Joined: Sun Oct 22, 2006 12:06 pm
Posts: 39
Hi!

I have some objects that are loaded by using Stored Procedure, not direct table mapping, but in the stored procedure query result there is no unicue column to identify the ID column.

The Hibernate requires ID column, is there some function or way to generate ID internally in Hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 7:17 am 
Regular
Regular

Joined: Fri Nov 04, 2005 12:37 pm
Posts: 81
There are number of options, check this page out in the docs:

http://www.hibernate.org/hib_docs/nhibe ... aration-id


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.