Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
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.