dkarr wrote:
You're specifying 'auto-import="false"', which specifically disables unqualified class references in HQL (the default is true). I would try removing that attribute setting. If that doesn't fix it, I might try removing the package attribute and making all the class references absolute.
That solves the problem. I always have the auto-import set to true with this mapping exception. I can't remember why I did so. Thans very much for pointing out the cause.
----
Ok, now I remember why I set the auto-import to false. I had two model classes with the same name under differenct packages. When I had the auto-import set to true or be its default value, Hibernate didn't know what one shall be used. I need to rename one of them to aviod the side effect.