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.
Example:
from SaleOrder s where s.id.client = :client
In SaleOrder.java I have:
@Id
private SaleOrderId id;
(...)
In SaleOrderId.java I have:
@Embeddable
public class SaleOrderId {
private String client;
// getters and setters
(...)
}
IntelliJ doesn't understand s.id.client. 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!
Please sign in to leave a comment.
This is a bug and since the next EAP it is a fixed bug, thank you
Thanks for your answer Gregory!