We are using hibernate3.2.0cr1 and 3.1beta9 annotations.
Our mapping is done with annotations.
I added the following to my class
@Formula("5*5")
public long getTotalCount(){
return totalCount;
}
It was originally an sql, but I trimmed things down to the basics to see if there was a problem elsewhere.
The rest of the class gets populated fine, but this field does not seem to get set by hibernate, although hibernate does seem to fire off the sql to the db (I had show sql = true).
Any tips on where I could be going wrong?
Thanks in advance.
|