PropertyNotFoundException: Could not find a setter for 0 on class.
In HQL query we have to give alias name for every property and should match with dto(java bean) property.
Should have alias name for table name also.
Exmaple:
Select e.empname as employee from Employee e;
Then this problem will be resolved.
No comments:
Post a Comment