Hello,
i'm having problems enabling multiple column unique constraints on a superclass an it's subclass. I've read in this forum that it' fixed but it didn't work for me. I downloaded 3.rc3 an still nothing. Here is my mapping file
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<!-- 
        Auto-generated mapping file from
        the hibernate.org cfg2hbm engine
-->
    <class name="AttributeDataType" table="ATTRIBUTEDATATYPE">
        <id name="attributeDataTypeId">
            <column name="ATTRIBUTEDATATYPEID" />
            <generator class="sequence">
            <param name="sequence">attributeDataTypeId_sq</param>
         </generator>
        </id>
      <discriminator column="attributeDataTypeTypeId" />
      <version name="beanVersion"
         column="version_"
         type="long" 
      />
      <property name="dataTypeId" >
            <column name="DATATYPEID" not-null="true"/>
        </property>
      <property name="attributeDataTypeTypeId" insert="false" update="false">
            <column name="attributeDataTypeTypeId" />
        </property>
        <property name="name" unique-key="unique">
            <column name="NAME"  not-null="true" />
        </property>
        <property name="description" >
            <column name="DESCRIPTION"  />
        </property>
        <property name="maxLength">
            <column name="MAXLENGTH" />
        </property>
        <property name="minLength">
            <column name="MINLENGTH" />
        </property>
        <property name="isMandatory" type="true_false">
            <column name="ISMANDATORY" not-null="true" />
        </property>
        <property name="defaultValue" >
            <column name="DEFAULTVALUE" />
        </property>
        <property name="regex" >
            <column name="REGEX" />
        </property>
      
      <subclass name="ServiceObjectAttributeType" discriminator-value="1">
         <join table="ServiceObjectAttributeType">
            <key column="serviceObjectAttributeTypeId" />
            <property name="statusId" column="statusId" />
            <property name="deliverableTypeId" column="deliverableTypeId" />
            <property name="serviceObjectTypeId" column="serviceObjectTypeId" unique-key="unique"/>
            
         </join>
      </subclass>
      
      
             
    </class>
</hibernate-mapping>
Am I doing something wrong or is it a bug? I'm trying to make a pair name and serviceObjectTypeId unique but it's not happening.