Closed julgus closed 1 year ago
The annotations are clearly disturbing how we are handling two different Integer fields:
For some reason, the annotations separate the package name java.lang
from Integer
. We probably just need to fix how we handle the parsing of type names.
Most interestingly this disturbance only occurs during Maven builds. During IntelliJ builds the annotations are followed by the qualified type name:
Describe the bug The fieldgenerator uses an incorrect field type when building the JPAStreamer metamodel. This means that comparators such as
.between()
and.greaterThan()
are unavailable when building predicates.Expected behavior A field with the following definition should generate a
ComparableField
:Should generate:
**Actual behavior*** The field generates a
ReferenceField
:How To Reproduce Add one of the annotations
@Size
,@NotNull
or@NotEmpty
to a JPA field.Build tool Maven 3.9.0
JPAStreamer version JPAStreamer 3.0.2
JPA Provider Hibernate 6.0.2.Final
Java Version 11.0.17