Fixed
Details
Assignee
Čedomir IgalyČedomir IgalyReporter
Čedomir IgalyČedomir IgalyComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Čedomir Igaly
Čedomir IgalyReporter
Čedomir Igaly
Čedomir IgalyComponents
Fix versions
Affects versions
Priority
Created May 13, 2024 at 11:59 AM
Updated June 14, 2024 at 3:08 PM
Resolved May 13, 2024 at 7:07 PM
When entity class is annotated with @CheckHQL annotation, named querries should be analyzed and errors reported during processing phase.
However, if non-existing constant of otherwise valid enum is referenced, it is treated as any valid constant and no error is reported until that named query is actually used
It seems that behaviour of @CheckHQL usage has never been tested in any test class. Most likely this is due to fact that this can not be simply tested in strict isolation. Therefore, I have created minimal example demonstrating that problem on github
Additionally, I will create example showing other effect of this bug and suggestion how to fix that.