0

在 JAXB 上,我有一个 LocalDate 属性

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

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

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.

请帮忙!!!

4

1 回答 1

1

而是注释该字段......根据我们的文档

于 2017-10-19T08:24:41.510 回答