VM JAXB 属性 'dateOfHire' 的类型为 'org.joda.time.LocalDate' 但未使用 @XmlJavaTypeAdapter 注释

VM JAXB property 'dateOfHire' is of type 'org.joda.time.LocalDate' but is not annotated with @XmlJavaTypeAdapter

在 JAXB 上我有一个 LocalDate 属性

@Property(editing = Editing.ENABLED)
@Getter @Setter
private LocalDate dateOfHire;

在我的其他实体上,我添加了 @XmlJavaTypeAdapter(PersistentEntityAdapter.class) 它们工作正常,但是 LocalDateorg.joda.time.LocalDate,所以我无法在其中添加注释。当我 运行 我的 VM 抛出异常时:

JAXB view model 'domainapp.modules.employment.dom.employee.EmployeeVM' property 'dateOfHire' is of type 'org.joda.time.LocalDate' but is not annotated with @XmlJavaTypeAdapter. The field/method must be annotated with @XmlJavaTypeAdapter(org.apache.isis.schema.utils.jaxbadapters.XxxAdapter.ForJaxb.class) or equivalent.

请帮忙!!!

改为注释该字段...根据 our docs