I am getting exception illegal access to loading collection. What I have noticed is that this is happening since database has value of -5.82335E-22 (scientific notitaion, large number of decimal places) for broker fee mentioned below.
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="BusinessDataTransfer" namespace="BusinessDataTransfer" > <class name="CostDetails" table="COST_DTLS"> <id name="CostDetailsUID" column="UIDPRICEDTLS"> <generator class="native" /> </id> <property name="StartTime" column="STARTTIME" /> <property name="BrokerFee" column="BrokerFee"/> ....
.net class corresponding to above nhibernate file
public class PriceCosts { public virtual DateTime StartTime { get; set; } public virtual Decimal BrokerFee { get; set; }
Is there any way to tackle this issue. I have tried changing mapping as mentioned below, but that was not working. <property name="BrokerFee" column="BrokerFee" type="Decimal(35,26)"/>
|