Compile error in generated query class for an Entity which uses Inheritance in multi-module Maven project #196
The error occurs in the following situation:
3 Entities are spread over two Maven projects: ProjectA and ProjectB.
Maven ProjectA contains two entities: Entity A and Entity Tenant.
Maven ProjectB contans Entity B which extends from A.
The Query class for Entity B is generated with compile error.
The following example project demostrates the error:
[ERROR] D:\tmp\q-bug\example-b\target\generated-sources\apt\b\QBImpl.java:[23,35] cannot find symbol
No error occurs if Entity B is moved to the project A.
The text was updated successfully, but these errors were encountered:
You can use the QueryEntities annotation in a package of project A to trigger processing of external classes like this
It is not possible to make this reliably in APT without declaring which external classes to process.