Thanks!!!

>>> [EMAIL PROTECTED] 08/19/04 12:14PM >>>
Hello,

> When ever I map a java date to a sql date, then do a to_char(
> time_start, 'dd-mon-yyyy hh24:mi:ss' ) in oracle, none of the
seconds
> gets mapped. Does the java.util.Date not contain the mm ss info?
Should
> I use a different type?

Yes, you should better use "timestamp" as type in the mapping,
for example:

        <field name="TIMESTAMP" type="timestamp" direct="true">
                <sql name="TIMESTAMP" type="timestamp"/>
        </field>

In the JDO you declare your variables as of the type
java.sql.Timestamp,
which is derived from java.util.Date.
This way you can use date and time information together.

Regards,

    Martin



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

Reply via email to