|
Hi, I’m quite new here but i
have found a thread which concerns directly my problem (converting to/from a
database Time and Date type generated by the source generator) but which doesn’t
seem to conclude anything … �I have tried to
develop a specific handler to concert to/from org.exolab.castor.types.Time
& org.exolab.castor.types.Date from/to java .util.Date And i have in my field
declaration something like : �������
<field name="outputdate" type="java.util.Date" required="true" handler="com.firco.swiftmessage.XMLDateTypeFieldHandler"> ����������� <sql name="OUTPUTDATE" type="date"/> �����������
<bind-xml name="outputdate" node="attribute"/> ������� </field> �������
<field name="outputtime" type="java.util.Date" required="true" handler="com.firco.swiftmessage.XMLTimeTypeFieldHandler"> ����������� <sql name="OUTPUTTIME" type="time"/> �����������
<bind-xml name="outputtime" node="attribute"/> But i have still the same
problem … (see copy of concerned email) org.exolab.castor.mapping.MappingException: No convertor exists for converting type java.sql.Time to type org.exolab.castor.types.Time So could someone try to explain how to use a field
Handler, regarding: �
Regards, C.ASSEMAT ------------------------------------------------------------------------------------ Re: [castor-user] Re: Date Format jdo
and xml Charles Abell Thu, Martin, Many thanks for the example, but
regretfully not. I suspect the difference
is my mapping�
has the extra line : <sql name="QU_DATE"
type="date" dirty="ignore" /> Stack trace is below. Best regards Charles org.exolab.castor.mapping.MappingException: No convertor exists for converting type java.lang.String to type java.sql.Date ������� at org.exolab.castor.jdo.engine.SQLTypes.getConvertor(SQLTypes.java:475) |
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
