在JAXB上我有一个LocalDate属性
@Property(editing = Editing.ENABLED)
@Getter @Setter
private LocalDate dateOfHire;
在我的其他实体上,我添加了@XmlJavaTypeAdapter(PersistentEntityAdapter.class)
它们工作正常,但LocalDate
为org.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.
请帮助!!!