Mapping deep properties with intermediate collections in dozer

前端 未结 3 1703
一个人的身影
一个人的身影 2021-02-09 16:29

Suppose I have the following classes

public class Baz {
  private List foos = new ArrayList();
}

public class Foo {
  private String strin         


        
3条回答
  •  余生分开走
    2021-02-09 17:20

    You could always write your own CustomConverter.

    It makes sense why Dozer isn't able to handle this as you expect since at runtime it has no type information about the List foos and can't guarantee that every Object in the list is actually a Foo.

提交回复
热议问题