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
Mapping MyEntity to MyDTO works fine, as expected. However, when mapping to MyDTOWithConstructor the Some_Value property is not mapped. I have tried some other NameMatchingStrategy values but none seem to help. When I remove the underscore from the entity and DTO accordingly then everything works fine. I could also use explicit mappings. However, I have a LOT of entities and DTO's and I was hoping to keep it as simple as possible. I'm not sure if this behavior is by design but, at least, in my opinion, it doesn't seem very consistent?
Oh, using Mapster 7.2.0.
The text was updated successfully, but these errors were encountered:
First of all: thanks for this great library!
I think I have stumbled upon a bug; if not then I apologize but I don't think this is by design?
Mapping
MyEntity
toMyDTO
works fine, as expected. However, when mapping toMyDTOWithConstructor
theSome_Value
property is not mapped. I have tried some otherNameMatchingStrategy
values but none seem to help. When I remove the underscore from the entity and DTO accordingly then everything works fine. I could also use explicit mappings. However, I have a LOT of entities and DTO's and I was hoping to keep it as simple as possible. I'm not sure if this behavior is by design but, at least, in my opinion, it doesn't seem very consistent?Oh, using Mapster 7.2.0.
The text was updated successfully, but these errors were encountered: