blaze-persistence
blaze-persistence copied to clipboard
Using MappingParameter for collection type doesn't work
From the question https://github.com/Blazebit/blaze-persistence/discussions/1496
We can see an error:
The initialization of the static metamodel class 'nz.co.submitkit.blazeviews.AppointmentView_' failed: java.lang.IllegalArgumentException: Can not set static com.blazebit.persistence.view.metamodel.MethodListAttribute field nz.co.submitkit.blazeviews.AppointmentView_.serviceCodes to com.blazebit.persistence.view.impl.metamodel.attribute.MappingMethodSingularAttribute
when using
@MappingParameter("serviceCodes")
List<ServiceCodeDto> getServiceCodes();
void setServiceCodes(List<ServiceCodeDto> set);