I have an Employee table which has employee_id column and it has been successfully working fine till now.
private String esEmployeeId; @Column(name = "employee_id") public String getEsEmployeeId() { return esEmployeeId; }
public void setEsEmployeeId(String esEmployeeId) { this.esEmployeeId= esEmployeeId; } after hibernate 4 migration the property doesn't seems to work and reports Caused by: org.hibernate.QueryException: could not resolve property:
Worked before migration: SELECT TEST.employeeId FROM com.testing.TestTO TEST where REFER.age in (50)] and doesn't work after migration
Error:
Caused by: org.hibernate.QueryException: could not resolve property: esEmployeeId of: Employee at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:83) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:77) at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1968) at org.hibernate.hql.internal.ast.tree.FromElementType.getPropertyType(FromElementType.java:313) at org.hibernate.hql.internal.ast.tree.FromElement.getPropertyType(FromElement.java:490)
don't think i am posting duplicates, fyi, raised a question in stackoverflow http://stackoverflow.com/questions/19396432/column-is-not-working-as-expected-after-hibernate-4-migration but left with no success
Could you please let me know your thoughts or comments?
Thanks in advance.
|