[jboss-user] [EJB 3.0] - Wrong column type: CREATE_TIME, expected: date
m.shinde
do-not-reply at jboss.com
Sat Jun 2 02:20:23 EDT 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050645#4050645
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050645
More information about the jboss-user
mailing list