0 Replies Latest reply on Apr 24, 2003 6:16 AM by Thilko Richter

    Problem with CMP 2.0 Timestamp - Date Mapping

    Thilko Richter Newbie

      Hi!

      I have a problem with java.sql.timestamp ...
      My jbosscmp-jdbc.xml:

      ...
      <cmp-field>
      <field-name>changedOn</field-name>
      <column-name>ChangedOn</column-name>

      <jdbc-type>TIMESTAMP</jdbc-type>
      <sql-type>DATE</sql-type>

      </cmp-field>
      ...
      When I call setChangedOn on EntityBean, the database record is corrupt. The first three character of the name in the entry have some other strange values... But when I dont save the timestamp, everything works perfectly. Also when I use a date... What I am doing wrong?

      Regards,

      Thilko