Bug 138149 - Need to switch to timestamp instead of date
Summary: Need to switch to timestamp instead of date
Alias: None
Product: Red Hat Network
Classification: Red Hat
Component: RHN/R&D
Version: RHN Devel
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Mike McCune
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: rhnMilestone1
TreeView+ depends on / blocked
Reported: 2004-11-05 01:12 UTC by Mike McCune
Modified: 2007-04-18 17:14 UTC (History)
0 users

Clone Of:
Last Closed: 2004-12-03 18:11:47 UTC

Attachments (Terms of Use)

Description Mike McCune 2004-11-05 01:12:54 UTC
We need to switch our Date fields over to the hibernate timestamp type:

-  <property name="created" column="created" type="date" />
-  <property name="modified" column="modified" type="date" />

+  <property name="created" column="created" type="timestamp"
     insert="false" update="false"/>
+  <property name="modified" column="modified" type="timestamp"
     insert="false" update="false"/>

Using Date results in a loss of the "time" field and you just get the
Date.  This causes all our Dates to come back with 00:00:00 as the time.

I'll go through the mapping files and fix this.  Just a heads up.


Note You need to log in before you can comment on or make changes to this bug.