Hibernate version: 2.1.6
Name and version of the database you are using: SQL Server 2000
Debug level Hibernate log excerpt: SQL Error: 107, SQLState: HY000
I got a class:
Code:
public class Account
{
public final static int STATUS_REG = 1;
private objID: Long;
private status: int
...
}
When excecuting the HQL :
from Account a
where a.status =
com.xxx.domain.account.Account.STATUS_REG
or
from Account a
where a.status =
1
Everything is fine. However, if the HQL is
from Account a
where a.status =
Account.STATUS_REG
The exception that the prefix