Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Parameters not showing for JPA query execution #176

Open
jacobsong opened this issue Dec 21, 2023 · 2 comments
Open

[Bug]: Parameters not showing for JPA query execution #176

jacobsong opened this issue Dec 21, 2023 · 2 comments

Comments

@jacobsong
Copy link

Describe the bug
When running a JPA query in IntelliJ and if your query has parameters, a popup window will display asking you to fill in those parameters. The value fields for the parameters are not visible when focused, but are visible when they lose focus.

In this screenshot I am focused on the :stateAffiliations field and the value is not visible while I'm typing, but in the 2nd screenshot you can see the value I typed when I click out of the field.
parameters
parameters2

To Reproduce

  1. select Atom One Dark Theme
  2. In your editor, hit alt+enter on a JPA query
  3. select Run in query console
  4. try to type in a value

Expected Behavior
parameter values are visible while typing

Environment
IntelliJ IDEA 2023.3 (Ultimate Edition)
Build #IU-233.11799.241, built on December 2, 2023
Runtime version: 17.0.9+7-b1087.7 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
ide.balloon.shadow.size=0
ide.intellij.laf.enable.animation=true
ide.experimental.ui=true
Non-Bundled Plugins:
com.mallowigi.idea (23.0.0)
CheckStyle-IDEA (5.85.0)
com.intellij.lang.jsgraphql (233.11799.172)
com.haulmont.jpab (2023.4.1-233)
org.sonarlint.idea (10.1.1.77150)
com.mallowigi (94.1.0)
zielu.gittoolbox (500.0.23+222)
com.intellij.spring.graphql (233.11799.196)
Kotlin: 233.11799.241-IJ

@mallowigi
Copy link
Collaborator

Do you have a repository i can reproduce on? I'm not familiar with JPA.

@jacobsong
Copy link
Author

jacobsong commented Dec 22, 2023

Do you have a repository i can reproduce on? I'm not familiar with JPA.

https://github.com/amigoscode/spring-data-jpa-course/tree/section-7

git checkout section-7

In src/main/resources/application.properties you will need to put in database credentials. Can use aws free tier or setup one on localhost.

You might need to install db driver and test connection:
add-db
driver

In src/main/java/com/example/demo/StudentRepository.java click into line 20 @Query annotation and hit Alt+Enter > 'Run query in console'. Choose persistence unit with your db connection. The "Parameters" window should popup asking you to input values.

GitHub
Contribute to amigoscode/spring-data-jpa-course development by creating an account on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants