Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.1.rc2
Mapping documents:
<hibernate-mapping>
<class name="com.drkw.stregister.bm.StructuredDeal" table="tblStructuredDeal" optimistic-lock="none" select-before-update="true" >
some extra irrelevent mappings here
<set name="reviewApprovals" table="tblTradeReviewApproval" cascade="all-delete-orphan" order-by="approvalNumber desc, approvedOn desc">
<key column="stdId" not-null="true" />
<one-to-many class="com.drkw.stregister.bm.TradeReviewApproval" />
</set>
</class>
</hibernate-mapping>
Name and version of the database you are using:
Sybase
I'm fairly new to Hibernate and just noticed something odd in our logs. After doing a retrieve of the StructuredDeal object and consequently the TradeReviewApproval objects, then displaying the data on a JSP, there is also extra unecessary update of the StructuredDeal and all the TradeReviewApprovals
Any ideas what could be causing this?