| 
					
						 Hibernate version: 
 hibernate-2.1.4
 Mapping documents:
 <class name="com.strongly.po.basicdata.contract.Salecontractinfo" table="SaleContractInfo">
 <id column="sSysID" name="id" type="string">
 <generator class="uuid.hex"/>
 </id>
 <property column="sSaleContractID" length="20" name="ssalecontractid" type="string"/>
 <property column="sSaleContractName" length="50" name="ssalecontractname" type="string"/>
 <property column="sVendeeCompanyID" length="20" name="svendeecompanyid" type="string"/>
 ....
 <property column="sUser" length="20" name="suser" type="string"/>
 <many-to-one name="organizationinfo" outer-join="true" property-ref="scompanyid" class="com.strongly.po.basicdata.organization.Organizationinfo" column="sVendeeCompanyID" insert="false" update="false" cascade="none"/>
 Code between sessionFactory.openSession() and session.close():
 
 Full stack trace of any exception that occurs:
 
 Name and version of the database you are using:
 MSSQL2000
 The generated SQL (show_sql=true):
 
 Debug level Hibernate log excerpt:
 
 
 [1] saleContractService.updateSaleContract(saleContract);   //update saleContract  	
 [2] PropertyUtils.copyProperties (dynaForm,saleContractService.findSaleContractByKey(saleContract.getId()));    //retrieve saleContract
 
 I mean that  i can retrieve the object "saleContract" by sentence [2] after updating it by sentenct [1] .   In the method "findSaleContractByKey", load() of Session will be executed. But now ,only  the method "updateSaleContract" in  [1] was executed and the method "findSaleContractByKey" in [2] wasn't .i don't know the matter.
 
 do you help me solve it? 
 
 i am sorry my poor english. 
					
  
						
					 |