Results 1 to 2 of 2

Thread: Hibernate & Dates

  1. #1
    Join Date
    Sep 2004
    Location
    Sydney
    Posts
    27

    Default Hibernate & Dates

    Hi,
    I have what seems to be a stupid problem.
    My bean has a java.util.Date field defined in it, and this is what the Oracle database field is defined as.
    I am using hibernate to manage my data access, however I get an error, where the value is too big for the field.
    The value that is trying to be inserted is:
    Thu Dec 02 14:11:31 EST 2004, when obviously it should be 02/12/2004.
    Surely I don't need to format the date as a string and use that to save it?

    thanks.

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    I think you should visit the Hibernate forum to get an answer to this. You don't have to convert the date to a String, that's for sure. I can vaguely recall some problems with Oracle and Dates in certain situations, but can't really remember what it was.

    Again, I think the Hibernate forum (forum.hibernate.org) is a better place to get an answer...

    alef
    Alef Arendsen
    SpringSource
    http://www.springsource.com

Similar Threads

  1. Replies: 5
    Last Post: Dec 27th, 2005, 07:00 AM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  4. Replies: 9
    Last Post: Sep 25th, 2004, 12:35 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •