We have migrated our project to use the latest version of hibernate which is 4.1.6 and seam which is 3.2 and JPA 2.1 . We Are having problem with the @Formula annotation. It seems that the right SQL is executed from the SQL output but the property value returns null. I dont know if these is dependency issue or anything. If you guys know it will be a big help
Here is the snapshot of the property.
@Formula(value="(select crs.name from EntityName crs where crs.id = id)")
public String getName() {
System.out.println(" name set -- " + name);
return name;
}
Many Thanks.