Hello everyone,
I have developed an application using seam, but for every column database that is composed using "_" character, seam makes the entity without "_" character and adds a @Column. For example I have in user table "first_name" but in the class firstName with @Column(name = "first_name").
The application doesn't deploy, with the following error :
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:ear=blv.ear,jar=blv.jar,unitName=blv
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing column: firstName in public.user
I Depend On:
jboss.jca:service=DataSourceBinding,name=blvDatasource
Depends On Me:
jboss.j2ee:ear=blv.ear,jar=blv.jar,name=LoginController,service=EJB3
jboss.j2ee:ear=blv.ear,jar=blv.jar,name=UserBean,service=EJB3
So you can see that @Column has no effect. I am using postgresql 8.2 and driver postgresql-8.2-506.jdbc4.jar.
Can anyone help me ?
Thank you.
|