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!

0
2 comments
Avatar
Permanently deleted user

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

0

Thanks for your answer Gregory!

0

Please sign in to leave a comment.