Joined: Mon Apr 16, 2007 1:08 pm Posts: 2
|
|
Hibernate version: 3.2.3
Given this class:
> public class Loan {
> public String getValue(){
> return "myValue";
> }
> public void setValue(String s){
> }
> ... addtional properties
> }
> Why can I not do the following hql?
> select loan.value from Loan as loan where ....
> I get
> could not resolve property: value of: com.famc.los.model.Loan [select loan.value from com.famc.los.model.Loan as loan where loan.id = 'AB]:<'];
The mapping is irrelevant in this case. The value from this getter/setter does not specifically map to a column in the database. It is a valid property on the Loan object though. It appears that the hql is only allowing you to access fields on the object, not bean properties.
|
|