-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: @Column is not working after hibernate 4 migration
PostPosted: Wed Oct 16, 2013 3:05 am 
Newbie

Joined: Mon Apr 24, 2006 9:14 am
Posts: 5
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(Abstrac‌​tPropertyMapping.java:83) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMa‌​pping.java:77) at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPers‌​ister.java:1968) at org.hibernate.hql.internal.ast.tree.FromElementType.getPropertyType(FromElementT‌​ype.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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.