-->
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: multiple unique-key
PostPosted: Thu Jan 03, 2008 7:34 am 
Newbie

Joined: Fri Dec 21, 2007 1:17 pm
Posts: 11
NHibernate version: 1.2.1 GA

Name and version of the database you are using: SQLServer 2005


Hi,
I'm experiencing a problem trying to create two unique constraints over multiple properties, where one of these is inside both constraints.

I tried this mapping but it generates one more constraint over the shared property as an alone unique constraint.

Code:
      <many-to-one name="Commissionario" class="EntitaLegale, SetecoEntities" column="Commissionario_Id" foreign-key="fk_Commessa_commissionario" unique-key="provaunica,provadue"/>
      <property name="ProgressivoCommessa" type="Int32" unique-key="provaunica"/>
      <property name="ProgressivoOfferta" type="Int32" unique-key="provadue"/>


I don't know what can I do... Please, can You help me ?
Thanks.


Top
 Profile  
 
 Post subject: UP
PostPosted: Fri Jan 04, 2008 5:42 am 
Newbie

Joined: Fri Dec 21, 2007 1:17 pm
Posts: 11
Only an UP!


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.