Thanks Bruce! It does.

-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 1:02 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] DateTime value into Oracle


This one time, at band camp, Kumar Dharm said:

KD> I have java.sql.date datatype in JDO and Date datatype of  EN_DATE field
of
KD>Oracle DB.
KD>
KD><field name="date" type="java.sql.Date">
KD>      <sql name="EN_DATE" type="date" dirty="ignore"/>
KD>      <xml node="element" />
KD>    </field>
KD>
KD> Actually, I want to insert DateTime value(eg.12/01/2002 9:00) into
EN_DATE
KD>field.
KD>How could I insert DateTime into Oracle sql using Castor? How I need to
map
KD>mapping file?

Kumar,

For both the date and the time, use java.sql.Timestamp. See
http://www.castor.org/types.html and see that timestamp is supported.

Bruce
--

perl -e 'print
unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to