I have written a O/R mapping about a parent table and a child table,but when i delete the records, there's a problem error like this :
the xml is:
Parent table:
<set cascade="all" inverse="true" lazy="true" name="remainBody"> <key column="id"/> <one-to-many class="com.gsi.s8000.common.S8000EventProperty"/></set>
Child table:
<many-to-one cascade="all" class="com.gsi.s8000.common.S8000Event" column="eventId" name="owner" not-null="true"/><property column="name" length="50" name="name" not-null="true" type="string" unique="false"/><property column="value" name="value" type="string"/><property column="newFlag" name="newFlag" not-null="true" type="boolean"/> When I used it in mySql,all of them is Ok,and delete operation can be processed easily.
I have searched in the web for the question,but i dont think them fit the situation i encountered.Is anybody have the experience to use the Hibernate with Sybase?
|