Serialization third-party classes with Simple XML (org.simpleframework.xml)

后端 未结 3 1595
鱼传尺愫
鱼传尺愫 2021-02-04 04:32

I have decided to use Simple XML serialization and was stucked with basic problem. I am trying to serialize java.util.UUID class instance as final field in this sma

3条回答
  •  余生分开走
    2021-02-04 05:19

    I have to answer by myself again :-)

    Advice from Niall Gallagher, project leader of Simple XML, from support-list:

    "You could use either a Converter or a Transform. I would say for a UUID a Transform with a Matcher would be the easiest option."

    So, I use Transform/Matcher and satisfied with it. This does not alter the fact that the Converter does not work for me :-)

提交回复
热议问题