Re: how does cayenne handle java.util.date values ?

From: Lothar Krenzien (lkrenzie..eb.de)
Date: Wed Dec 06 2006 - 08:48:54 EST

  • Next message: Yann Puech: "Re : best practice for handling database schema changes"

    Thanks for your answer.
    Because the real problem is a little bit more complicated I will try to create a better sample and then maybe come back.

    Lothar

    > -----Ursprüngliche Nachricht-----
    > Von: cayenne-use..ncubator.apache.org
    > Gesendet: 05.12.06 23:36:17
    > An: cayenne-use..ncubator.apache.org
    > Betreff: Re: how does cayenne handle java.util.date values ?

    > Hello.
    >
    > I think your code looks okay. Are the actual value stored in the
    > database wrong or perhaps only the bind parameter output?
    >
    > The actual timestamp object should be sent to the database. The
    > String that QueryLogger outputs is just "new java.sql.Timestamp
    > (yourDateValue).toString()" that has its own format and may not
    > include timezone information.
    >
    > - Tore.
    >
    > On Dec 5, 2006, at 18:19, Lothar Krenzien wrote:
    >
    > > bind: '2006-10-28 15:14:28.0'
    >
    >

    ______________________________________________________________________________
    "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
    Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!



    This archive was generated by hypermail 2.0.0 : Wed Dec 06 2006 - 08:49:33 EST