You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the Orika mapper to map attributes of a class into a set. Previously I implemented it with a list, however I want to get rid of the indices in the Orika factories, because the order of the elements is not important.
For the list implementation, the declarative mapping configuration in the Orika factories worked quite well. When I changed everything to Set, Orika's field mapping no longer works. Does anyone know why? Do I have a wrong declaration of the field mapping?
Set<AssetAdministrationShell> administrationShells = new HashSet<>(environment.getAssetAdministrationShells());
Set<InternalElement> shellInternalElements = mapper.mapAsSet(administrationShells, InternalElement.class);
I want to use the Orika mapper to map attributes of a class into a set. Previously I implemented it with a list, however I want to get rid of the indices in the Orika factories, because the order of the elements is not important.
For the list implementation, the declarative mapping configuration in the Orika factories worked quite well. When I changed everything to Set, Orika's field mapping no longer works. Does anyone know why? Do I have a wrong declaration of the field mapping?
List factory mapper
Set factory mapper that does not work yet
The text was updated successfully, but these errors were encountered: