-->
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: Identity (sequence) columns that are not ID columns
PostPosted: Tue May 02, 2006 9:35 am 
Newbie

Joined: Sat Feb 11, 2006 12:11 pm
Posts: 7
Hi guys,

I have a table in SQL Server 2000 that, besides the PK identity column, has another column that must be a unique bigint. This new column must behave similar to PK identity column.

SQL Server does not allow multiple identity columns so for this column I will use a separate table that will store the next available value (similar to hilo)

My question is:

Can NHibernate automatically manage the value from the sequence table, i.e. read it and increment it in the same transaction that inserts my business object?

I know NHibernate can do this for id columns (<generator class="hilo"...) but a <generator> tag cannot be specified inside a <property> tag.

Thanks!


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.