Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Draft saved
Draft discarded

Required fields are marked with *

Cancel
27
  • 1
    Could it come from repository methods with parameters of type List<Long>? I started using the JPA Console in IntelliJ recently and I noted it works fine in most situations, but when I try to pass anything to the method like @Query("select count(e) from Entity e where e.id in :ids") long countByIds(@Param("ids") List<Long> ids); then I get a similar error about incompatible types of java.lang.Long in the JPA Console. Commented Feb 1 at 12:57
  • 2
    If you could somehow post an MCVE on GitHub, i.e. a full minimal project that builds, runs (using an in-memory DBMS, if necessary) and reproduces the problem, it would be much easier to help you. While creating the MCVE, starting with your full application and stripping it down to the bare minimum, you might even accidentally find out what is wrong with it. If not, other people are likely to be able to help you. Commented Feb 2 at 3:57
  • 2
    @SargentD if it's a simple controller then post it please or something at least similar if it's a confidential code. It will be easier to help you without guessing. Commented Feb 2 at 14:07
  • 1
    Please edit the question to add a minimal reproducible example. Commented Feb 2 at 15:43
  • 2
    @SargentD the idea for the test was to verify that it changes something, not that it is the one and only solution. Resolving unclear problems first involves ruling out possibilities. Commented Feb 3 at 13:47

lang-java