facebook

Can’t use HQL editor when there is annotation going on

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

    Version: 6.0.0 M1
    Build id: 20070629-6.0.0-M1

    Project has two hibernate config files. One uses XML mapping. One uses annotations. Any attempt to open the HQL editor results in the following message in a pop-up.

    A configuration object could not be built, autocomplete and dynamic query translation will be unavailable.Queries cannot be executed.

    Reason:
    An AnnotationConfiguration instance is required to use <mapping class=”com.basistech.namedatabase.NameToken”/>

    #274001 Reply

    Loyal Water
    Member

    Can you please send me a sample project so that I can test this at my end..

    #274984 Reply

    camechis
    Member

    It appears that you can’t use the HQL editor unless you create a normal hibernate project with config files. I was able to use this feature with the real Hibernate tools. Did MyEclipse not include this feature ? If it did how do you create a project that uses Hibernate annotations and still use the HQL editor ?

    #275019 Reply

    Loyal Water
    Member

    Our Hibernate tools don’t support annotations yet.

    AND, you have to add Hibernate Capabilities to your project (Java, Web, EJB, WS, etc.) before using the HQL Editor.

    #276062 Reply

    Steve Olson
    Member

    This message has not been recovered.

    #276103 Reply

    Brian Fernandes
    Moderator

    This message has not been recovered.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Can’t use HQL editor when there is annotation going on

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