Hi all,
I use aegis binding and I need to configure mappings but I can not convert a
Date field to xsd:date ,
It always generates xsd:dateTime. When I read the API there it says
java.sql.Date type fileds are converted to xsd:date but when I debug the
1.2.2.
Source I see that for the relavant filed It says:
org.codehaus.xfire.aegis.type.basic.SqlDateType[class=java.sql.Date,
QName={http://www.w3.org/2001/XMLSchema}dateTime]
In the javadocs It says:
public class SqlDateType
extends DateType
<http://envoisolutions.com/xfire/api/org/codehaus/xfire/aegis/type/basic/Dat
eType.html>
Type for the java.sql.Date class which serializes as an xsd:date (no time
information).
What is wrong here?
I also tried the following mapping element:
<property name="rateEffectiveDt" mappedName="RateEffectiveDt"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:date"/>
I received
Unable to load type class xsd:date. Nested exception is
java.lang.ClassNotFoundException: xsd:date
java.lang.ClassNotFoundException: xsd:date
error since ClassLoader delegates a ClassLoader to lookup by name
"xsd:date"
Are there any suggestions for a working configuration?
Thanks,
Baris