Re: Which data type is for Date and time?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Jul 14 2005 - 01:49:34 EDT

  • Next message: Gentry, Michael \(Contractor\): "RE: Interesting Tomcat (et al) Issue ..."

    Use TIMESTAMP for DbAttribute (this is a JDBC standard type for date
    + time) and java.util.Date for ObjAttribute.

    On PostgreSQL end it translates to something called "timestamp with
    time zone". If you use CayenneModeler to create the schema, this is
    the type Cayenne would use for TIMESTAMPs.

    Andrus

    On Jul 13, 2005, at 7:40 PM, Dhruti Ramani wrote:

    > Hi,
    >
    > I need to store Date and Time for one field. Which data type i
    > should use and which java type I should map that to? i am using
    > cayenne1.1 and postgesql as databse.
    >
    > Thanks,
    > Denna



    This archive was generated by hypermail 2.0.0 : Thu Jul 14 2005 - 01:49:34 EDT