首先,我不是在谈论Marshaller#Listener.我在谈论那些class defined事件回调.
谁能告诉我应该从boolean beforeMarshal(Marshaller)方法中返回什么?
/**
* Where is apidocs for this method?
* What should I return for this?
*/
boolean beforeMarshal(Marshaller marshaller);
Run Code Online (Sandbox Code Playgroud)
我的意思是,无论如何,用于转换这种方法JPA's Long @Id to JAXB's String @XmlID 与JAXB-RI和无莫西.
[编辑]一个void版本似乎工作.这只是一个文档问题吗?