-->
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: unique constraint on dicriminator column
PostPosted: Fri Sep 10, 2004 4:26 pm 
Newbie

Joined: Fri Sep 10, 2004 4:19 pm
Posts: 1
Hibernate version: 2.1.6

I am trying to generate a table that has a unique constraint on the dicriminator column and one other column. No matter what I do, the table is not generated with the discriminator column included in the unique constraint. Am I doing something wrong or is this even possible?

Mapping documents:
...
<discriminator
column="regStepType"
type="string"
>
<column
name="regStepType"
unique-key="one"
/>
</discriminator>

...

<many-to-one
name="userGroup"
class="com.wingateweb.vo.UserGroup"
cascade="none"
outer-join="auto"
update="true"
insert="true"
access="property"
>
<column
name="usergroup_id"
unique-key="one"
/>
</many-to-one>

Name and version of the database you are using: HSQL 1.7.2.2


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.