2 Replies Latest reply on Jun 4, 2007 3:16 AM by m.shinde

    Wrong column type: CREATE_TIME, expected: date     

    m.shinde

      Hi,

      I am deploying my application in jboss-4.2.0.CR2. Using Oracle9i. Ejb3.0,JSF.

      Getting following exception. Don't know why

      Caused by: org.hibernate.HibernateException: Wrong column type: CREATE_TIME, expected: date


      Below is my EJB entity bean code, Here I used java.util.Date
      @Column(name = "CREATE_TIME")
      private Date createTime;
      


      And the actual table column datatype is like this.
      CREATE_TIME TIMESTAMP(6) Y sysdate


      Even I used @Temporal(TemporalType.TIMESTAMP) Still giving same problem

      Please suggest.