1

I dynamically generated my hbms. Now when I attempt to use the HQL Editor in Eclipse, I'm getting the following 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

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
coder
  • 6,111
  • 19
  • 54
  • 73

1 Answers1

1

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

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
  • Thanks for the help. My configuration was not set up correctly. I created a new one using the hibernate.cfg.xml file that was created the first time and it now works. – coder Nov 14 '10 at 17:47