Re: DATETIME with mysql

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Sep 02 2003 - 17:50:11 EDT

  • Next message: Dirk Olmes: "Re: DATETIME with mysql"

    Hi Reinier,

    I assume MySQL DATETIME includes both date and time information(?) In this
    case, mapping DbAttribute to TIMESTAMP should work just fine. On the Java
    side you may use java.util.Date (or java.sql.Timestamp, though I
    personally prefer Date)

    Andrus

    > Hi all,
    >
    > I want to use the mysql DATETIME type, but have trouble finding the
    > correct type in the modeller to create the database attribute. In the
    > modeler there is either DATE or TIMESTAMP, but they won't work (I
    > assume).
    >
    > Which type should I use in the modeler? I found a page on the website
    > that maps Cayenne types to different database types, but mySQL was not
    > on the list.
    >
    > Please help
    > reinier
    >
    > --
    > Reinier Mostert <rendie..labo.co.za>



    This archive was generated by hypermail 2.0.0 : Tue Sep 02 2003 - 17:50:12 EDT