mcarleio / konvert

This kotlin compiler plugin is using KSP API and generates kotlin code to map one class to another
https://mcarleio.github.io/konvert/
Apache License 2.0
93 stars 8 forks source link

PropertyMappingNotExistingException: No property for valueParameter #68

Closed roma2341 closed 4 months ago

roma2341 commented 6 months ago

[ksp] io.mcarle.konvert.processor.exceptions.PropertyMappingNotExistingException: No property for valueParameter=ownerId existing in [PropertyMappingInfo(mappingParamName=document, sourceName=id, targetName=id, constant=null, expression=null, ignore=false, enableConverters=[], sourceData=SourceProperty(property=id), isBasedOnAnnotation=false), PropertyMappingInfo(mappingParamName=document, sourceName=firstName, targetName=firstName, constant=null, expression=null, ignore=false, enableConverters=[], sourceData=SourceProperty(property=firstName), isBasedOnAnnotation=false), PropertyMappingInfo(mappingParamName=document, sourceName=lastName, targetName=lastName, constant=null, expression=null, ignore=false, enableConverters=[], sourceData=SourceProperty(property=lastName), isBasedOnAnnotation=false), PropertyMappingInfo(mappingParamName=document, sourceName=email, targetName=email, constant=null, expression=null, ignore=false, enableConverters=[], sourceData=SourceProperty(property=email), isBasedOnAnnotation=false), PropertyMappingInfo(mappingParamName=document, sourceName=phone, targetName=phone, constant=null, expression=null, ignore=false, enableConverters=[], sourceData=SourceProperty(property=phone), isBasedOnAnnotation=false)]

mcarleio commented 6 months ago

Please provide the code to reproduce.

roma2341 commented 6 months ago

here is: https://file.io/Jv69cit3a7cO Try to build user service

mcarleio commented 6 months ago

Please provide just the necessary code to reproduce and not via file upload, which expires after short time

image

From the error message it seems your target class expects a value for "ownerId" but your source class does not have a field for that.