Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:54:32+00:00 2026-06-08T07:54:32+00:00

It took me forever to figure out how to get JPQL auto-completing to working

  • 0

It took me forever to figure out how to get JPQL auto-completing to working in eclipse.
The only place I can see that happening is to add a <mapping-file>
to my persistance.xml and in the mapping .xml file I can define a <named-query> . Then if I add the “JPA Details” view and I select the query I want to edit, I get a tiny 4-line textbox
in which I must edit my query. Only in this tiny textbox do I get content assistance.

A) Is there any way to hack this textbox to be bigger?
(My queries are quite complicated and I need a lot more lines)

B) Is there any other bigger place to get JPQL content assist?

(I have the same issue in Indigo 3.7 and Juno 4.2)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:54:33+00:00Added an answer on June 8, 2026 at 7:54 am

    Content assistant is also available via @NamedQuery annotation. If it makes no difference for you to store configuration in XML file or using annotations over Entity class, then you can take advantage of the latter. As soon as you begin editing ‘query’ element of a @NamedQuery, the same content assistant is available as in JPA Details / Queries. It gives you plenty of space; however, since it’s a String constant defined in Java code, you’ll have to deal with extra quotes and concatenation in case of query split into multiple lines. At the same time, you will be able to review this query in JPA Details view.

    As for JPA Details view, I doubt if this Query editbox is configurable, unless modifying plug-in sources and rebuilding.

    EDIT In response to comment (3),- here’s a ‘direction’:

    • JPA Details view along with panels/panes defined in org.eclipse.jpt.jpa.ui plug-in
    • Named Query edit views are defined in classes NamedQueryPropertyComposite and NamedQueryProperty2_0Composite for JPA v1 and JPA v2 accordingly.
    • the code fragment that adjusts named query editor box to 4 lines, looks as following:

      adjustMultiLineTextLayout(
          4,
          provider.getStyledText(),
          provider.getStyledText().getLineHeight()
      );
      

    .. where 4 is line count.

    The sources are found here: :pserver:anonymous@dev.eclipse.org:/cvsroot/webtools (not sure which specific Eclipse version they are targeted on, but this is definitely newer than what comes with Indigo).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it took me some time to find out that both Eclipse and Aptana get
It took me FOREVER to finally find code that can download a doc file
It took me a little bit, but I figured out that I can't click
took me a long time to figure this out and was wondering if it
This is the data stream, (Hope I'm displaying this correctly, it took me forever
I'm starting my node.js server like this: sudo NODE_ENV=production forever start -o out.log -e
I'm going to ask and answer this question because it took me forever to
I'm working on some 2D games with Pygame. I need to place several objects
I took on a project that was developed by another developer. The client needs
I'm trying to learn how to use LWJGL libraries. Took me forever to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.