You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Sy...@swisscom.com on 2003/04/14 17:08:15 UTC

does OJB support FLOAT?

Hello,

I have a database table that use "float" (SQL Server database).

I'm using the "FLOAT" type in repository and "Float" in Java class.

But I have this error:
[DEFAULT] ERROR: Error in operation [set] of object [PersistentFieldPropertyImpl], java.lang.IllegalArgumentException
[DEFAULT] ERROR: Declaring class [wocconfigdb400.data.Application]
[DEFAULT] ERROR: Property Name [applicationVersion]
[DEFAULT] ERROR: Property Type [java.lang.Float]
[DEFAULT] ERROR: anObject was class [wocconfigdb400.data.Application]
[DEFAULT] ERROR: aValue was class [java.lang.Double]
[org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR: PersistenceBrokerException during the execution of materializeObject: Unable to build object instance :class wocconfigdb400.data.Application
Unable to build object instance :class wocconfigdb400.data.Application


Anyone has an idea what could be wrong?

Thanks
Sylvain

 

RE: does OJB support FLOAT?

Posted by Ismail Siddiqui <is...@alloy.com>.
User REAL instead of FLOAT

-----Original Message-----
From: Sylvain.Thevoz@swisscom.com [mailto:Sylvain.Thevoz@swisscom.com]
Sent: Monday, April 14, 2003 11:08 AM
To: ojb-user@db.apache.org
Subject: does OJB support FLOAT?

Hello,

I have a database table that use "float" (SQL Server database).

I'm using the "FLOAT" type in repository and "Float" in Java class.

But I have this error:
[DEFAULT] ERROR: Error in operation [set] of object
[PersistentFieldPropertyImpl], java.lang.IllegalArgumentException
[DEFAULT] ERROR: Declaring class [wocconfigdb400.data.Application]
[DEFAULT] ERROR: Property Name [applicationVersion]
[DEFAULT] ERROR: Property Type [java.lang.Float]
[DEFAULT] ERROR: anObject was class [wocconfigdb400.data.Application]
[DEFAULT] ERROR: aValue was class [java.lang.Double]
[org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR:
PersistenceBrokerException during the execution of materializeObject: Unable
to build object instance :class wocconfigdb400.data.Application
Unable to build object instance :class wocconfigdb400.data.Application


Anyone has an idea what could be wrong?

Thanks
Sylvain



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org