I found a possible bug in the provided bean QueryConditionProcessor
:
The query is generated incorrectly when there are two data stores and a table from one store has a reference to a table in another store.
Generated query:
select e from Student e where e.room = :roommNYDXfvb
Parameters:
{roommNYDXfvb=019941e6-f9ee-7787-b543-aaee4cde11dc}
The parameter "roommNYDXfvb"
is assigned the ID value instead of the Room
entity.
It should be:
select e from Student e where e.room.id = :roommNYDXfvb
I have provided a test project that demonstrates this issue.
Reference information about QueryConditionProcessor
on the forum:
Could you please advise on possible workarounds for this bug?
Jmix version: 2.6.1
IntelliJ IDEA 2025.2.1 (Ultimate Edition)

issueQueryConditionProcessor (2).zip (109.3 KB)