Hi Guys,
We have migrated our project from hibernate 3.1.x to hibernate 4.1.x version. We are having problem with @Formula annotation.
The getter field is returning null values for all @Formula mappings. I really do not know what is happening though, it seems working fine using
the older version.
Here is the sample formula.
Code:
@Formula(value="(select crs.name from EntityName crs where crs.id = id)")
public String getName() {
System.out.println(" review set -- " + name);
return name;
}
I have checked the generated SQL and is working fine when i try to query it. Is there something that I am missing here.
Your help will be appreciated. Thanks