DAS throws error while using Oracle11g Integer primary key
-----------------------------------------------------------
Key: TUSCANY-3669
URL: https://issues.apache.org/jira/browse/TUSCANY-3669
Project: Tuscany
Issue Type: Bug
Components: Java DAS Samples
Affects Versions: Java-DAS-beta1
Environment: Company sample webapplication provided as part of
tuscany-das-1.0-incubating-beta2 and Oracle 11g
Reporter: antony
I have created company, dept, emp tables in oracle where as company table has
ID - Integer and Name -varchar2(50).
In the company config file:
<Command name="all companies" SQL="Select * from COMPANY" kind="Select">
<ResultDescriptor columnName="ID" tableName="COMPANY"
columnType="commonj.sdo.Int"/>
<ResultDescriptor columnName="NAME" tableName="COMPANY"
columnType="commonj.sdo.String"/>
</Command>
When i try to run this 'all companies' command, it is throwing the below error.
But when i tried with String as primary key instead of Integer (also changed in
the config file), it works fine.
The value of type 'class java.math.BigDecimal' must be of type 'class
java.lang.Integer'.
Can you throw some light on this issue?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.