Dozer mapping JodaTime property not working as expected

后端 未结 5 2294
太阳男子
太阳男子 2021-02-19 14:03

I am using Dozer to map between a Document class to DocumentManagementBean class, both of my own making. Both have a property, with getters and setters, of Joda DateTime type, c

5条回答
  •  伪装坚强ぢ
    2021-02-19 14:23

    I think the root cause is that DateTime is immutable, so the deep copy cannot be done (see https://github.com/DozerMapper/dozer/issues/216).

    That's why you have to use a converter or copy it by reference.

提交回复
热议问题