-
1. Re: Auto-completion support for ejb3 @NamedQuery annotations
maxandersen Jan 4, 2007 1:33 AM (in response to joe.marques)yes, hibernate tools (part of jbosside) supports this though it's been a bit tricky to enable.
I suggest you take a look at beta9 when it comes out because here it will be enabled as soon as you have created or associated a hibernate console configuration for your project. -
2. Re: Auto-completion support for ejb3 @NamedQuery annotations
maxandersen Jan 4, 2007 1:35 AM (in response to joe.marques)See beta6 release notes for illustration of what we support at the moment and how to enable it:
http://www.hibernate.org/hib_docs/tools/eclipse/newandnoteworthy/hibernate-eclipse-news-3.2.0.beta6.html -
3. Re: Auto-completion support for ejb3 @NamedQuery annotations
joe.marques Jan 4, 2007 1:26 PM (in response to joe.marques)I looked at beta6. I followed the instructions for "Java Inline HQL editing", which seemed to be the most relevant to this discussion, but nothing happened.
Do the tools require you to have the entity mappings set up via the hibernate mapping files? I created a console configuration and checked the option that read "Enable hibernate ejb3/annotations..." - but that didn't seem to do anything.
So I agree - it IS a bit tricky to enable. Any further pointers you can give me? -
4. Re: Auto-completion support for ejb3 @NamedQuery annotations
joe.marques Jan 19, 2007 3:19 AM (in response to joe.marques)I guess I wasn't originally clear on this. I didn't want auto-completion or syntax checking for HQL, I was looking for JPQL support.
-
5. Re: Auto-completion support for ejb3 @NamedQuery annotations
maxandersen Jan 19, 2007 3:44 AM (in response to joe.marques)eh - why do you think HQLchecking is not enough for you ? :)
HQL >= JPQL
Thus they work the same.
note in b9 there is no additional setup after you have created a console configuration for a project.
You just need to make sure the sessionfactory is created (expand the node in the console configuration) - then hibernate tools will offer you code completion and validation.