blaze-persistence icon indicating copy to clipboard operation
blaze-persistence copied to clipboard

Using MappingParameter for collection type doesn't work

Open beikov opened this issue 3 years ago • 0 comments

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);

beikov avatar Jun 13 '22 06:06 beikov