Open knfs9 opened 2 years ago
It's fixed by removing @AllArgsConstructor, so ma.glasnost.orika.impl.DefaultMapperFactory#lookupObjectFactory(ma.glasnost.orika.metadata.Type<T>, ma.glasnost.orika.metadata.Type<S>, ma.glasnost.orika.MappingContext)
returns DefaultConstructorObjectFactory when there is only one constructor, instead of generated ObjectFactory.
But still i believe it could be bug in generated ObjectFactory
Source class:
Destination class:
Mapping written like this:
Generated ObjectFactory method:
I'm getting Caused by: javassist.compiler.CompileError: getInnerEntities() not found in test.Data
In generated ObjectFactory it tries to getInnerEntities from Data - (java.util.List)source.getInnerEntities(), howevever, InnerEntity dos not belong to Data directly
Not sure if I'm doing the right mapping here and it is not supported by Orika or it's a bug.