Joined: Mon Jun 26, 2006 4:38 am Posts: 7 Location: Osijek, Croatia
|
It can, just discriminator property inside multi-column unique constraint must have atribute insert="false" update="false"
example:
<discriminator column="tip" type="string" />
<properties name ="index" unique="true">
<many-to-one name="korisnik" class="orka.mkor.mapping.poduzeca.Korisnik" not-null="true"/>
<many-to-one name="dokument" not-null="true"/>
<property name="broj" />
<property name="godina"/>
<property name="tip" insert="false" update="false"/>
<many-to-one name="obracunskaJedinica"
class="orka.mkor.mapping.poduzeca.ObracunskaJedinica"
not-null="true"/>
</properties>
|
|