facebook

Problem running HQL

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #292374 Reply

    LexisNexis
    Member

    I use hibernate reverse engineering feature to create annotation map with myeclipse 7.0.

    When running HQL in HQL editor, there is nothing returned in Hibernate Query Results view,

    There are errors in Hibernate Dynamic Query generator,
    HQL was valid, but no SQL generated. Your configuration most likely does not have any mappings defined.

    The database is configured correctly because the Table/Object Info view returns correct information.

    If I make a typo in HQL editor, the Hibernate Query Results view shows error, the entity is not mapped.

    Thanks for your help!

    ct

    #292459 Reply

    Brian Fernandes
    Moderator

    ct,

    Sanity check, you did reverse engineer using annotations into your project, right? The HQL editor does not have a relationship with the Table/Object view, it is only based off your Hibernate project and tables you have reverse engineered to it.
    Did you create your Hibernate project with MyEclipse 7.0 or a previous version of MyEclipse? Did you choose Hibernate 3.2 and annotation support when creating the project?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problem running HQL

You must be logged in to post in the forum log in