title: Java type for date/time when using Oracle Date with Hibernate
body: <p>We have a Oracle Date column.  At first in our Java/Hibernate class we were using <code>java.sql.Date</code>.  This worked but it didn't seem to store any time information in the database when we save so I changed the Java data type to Timestamp.  Now we get this error:</p>
  
  <blockquote>
    <p>springframework.beans.factory.BeanCreationException:
    Error creating bean with name
    'org.springframework.dao.an
    notation.PersistenceExceptionTranslationPostProcessor#0'
    defined in class path resource
    [margin-service-domain
    -config.xml]: Initialization of bean failed; nested exception is
    org.springframework.beans.factory.BeanCreatio
    nException: Error creating bean with
    name 'sessionFactory' defined in class
    path resource [m-service-doma
    in-config.xml]: Invocation of init
    method failed; nested exception is
    org.hibernate.HibernateException:
    Wrong column type: CREATE_TS,
    expected: timestamp</p>
  </blockquote>
  
  <p>Any ideas on how to map an Oracle <code>Date</code> while retaining the time portion?  </p>
  
  <hr>
  
  <p>Update: I can get it to work if I use the Oracle <code>Timestamp</code> data type but I don't want that level of precision ideally.  Just want the basic Oracle <code>Date</code>.</p>