1 Reply Latest reply on Aug 26, 2008 3:44 AM by skajotde

    EJB3 Entity Bean - Date attribute - @Temporal issue

    manawajaws

      Hi all,

      I am experiencing an issue using the following attribute:

      // no matter what TemporalType used here
      @Temporal(value = TemporalType.TIME)
      private Date creationDate;
      


      against a datetime column in the Table on SQL Server.

      The value I put in the DB is not the one I retrieve, doing a getTime() on both values shows a millisecond difference (thus, the dates are not equal).
      This behaviour is completely random.

      Has somebody already experienced such a behaviour?
      Cheers

      Fab