Blazebit / blaze-persistence

Rich Criteria API for JPA providers
https://persistence.blazebit.com
Apache License 2.0
727 stars 85 forks source link

Invalid generated entity view classes #1730

Open NorbertKominak opened 1 year ago

NorbertKominak commented 1 year ago

Invalid generated entity view classes

Description

When using abstract classes instead of interfaces as entity views, the annotation processor generates unexpected classes like BlazeDomainObjectIdentified_com_example_demo_dated_BlazeDatedObjectIdentified and generic type ROOT is doubled in the generated classes. I am using abstract classes so I can have the toString() method in my views.

Expected behavior

Entity view generated classes would work.

Actual behavior

Entity view generated classes cant be compiled.

Steps to reproduce

Simple error reproducer can be found here https://github.com/NorbertKominak/BlazePersistenceEntityViewAnnotationError. Just run main() in the DemoApplication class.

beikov commented 1 year ago

Thanks for the report. I haven't seen this sort of behavior yet, but I'll look into it as soon as possible.