-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: decimal with exponential value issue
PostPosted: Tue Oct 18, 2011 1:35 am 
Newbie

Joined: Tue Oct 18, 2011 1:22 am
Posts: 1
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)"/>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.