开发者

My hibernate mapping files exist, what are possible reasons that the mapping can't be found?

开发者 https://www.devze.com 2023-01-24 20:09 出处:网络
I dynamically generated my hbms.Now when I attempt to use the HQL Editor in Eclipse, I\'m getting the follo开发者_C百科wing error:

I dynamically generated my hbms. Now when I attempt to use the HQL Editor in Eclipse, I'm getting the follo开发者_C百科wing error:

Hibernate Dynamic SQL Window: HQL was valid, but no SQL generated. Your configuration most likely does not have any mappings defined.

Hibernate Query Result Window: org.hibernate.hql.ast.QuerySyntaxException: system is not mapped [from system].

My hql reads:

from com.kevin.hibernate.Address


How did you create your Hibernate Console Configuration? Did you declare a hibernate.cfg.xml? If yes, does it list the mappings? Do you get any useful hint in the Error View?

Maybe following the steps of the section 3.3. Creating a Hibernate Console configuration will help.

References

  • Hibernate Tools Reference Guide
    • Chapter 3. Eclipse Plugins
0

精彩评论

暂无评论...
验证码 换一张
取 消