Joined: Mon Jun 25, 2012 9:25 am Posts: 1
|
Hello!
I'm new to Hibernate and I'm having a problem with deleting an object from the database
I'm getting the following exception..org.hibernate.exception.ConstraintViolationException: Integrity constraint violation
Here it is my mapping file..
<class entity-name "toto" table="TOTO"> <id access=field column="TOTO_ID" type="string"> <generator class="uuid"/> </id> <list access="field" cascade="save-update,all-delete-orphan" lazy="false" name="titis" inverse="false"> <key column="TOTO_ID" not-null="true" on-delete="cascade" unique=true"/> <list-index base="1" column="number"/> <many-to-many class=Titi column="TITI" entity-name="Titi" lazy="false" not-found="ignore" unique="false"/> </list> </class> <class dynamic-insert="true" dynamic-update="true" entity-name="Titi" lazt="false" name="Titi" .. <id access="field" column ="Titi" type="string"> <generator class="uuid"/> </id>
.....
The relation is unidirectional.. Do you have any ideas of the problem? Thanks for your time and in advance!
|
|