Incorrect "Persistence QL Problem"

Good morning.

I have inspection Java EE Issues > Persistence QL Problem enabled in my IntelliJ. It works fine except when I reference a composite id in my query.


from SaleOrder s where = :client

In I have:

private SaleOrderId id;

In I have:

public class SaleOrderId {
private String client;

// getters and setters


IntelliJ doesn't understand It tells "Can't resolve expression" and highlights client as red.

Hibernate accepts this construction without problem.

Does anybody know if this is a bug in IntelliJ?

Thanks a lot!

Comment actions Permalink

This is a bug and since the next EAP it is a fixed bug, thank you

Comment actions Permalink

Thanks for your answer Gregory!


Please sign in to leave a comment.