开发者

Cannot import JABX XmlPath class

i'm working on application requiring unmarshalling action.

here's my input file structure :

<root>
      <sender>senderCode</sender>
      <receiver>receiverCode</receiver>
      <document-type code="05"/>
      <date>recDate</date>
<root>

and to unmarshal i create thr开发者_JAVA百科ee POJO classes : Root GeneralInfo and Doctype

My problem is that i can

import org.eclipse.persistence.oxm.annotations.*;

but i get "import ... cannot be resolved" when i :

import org.eclipse.persistence.oxm.annotations.XmlPath;

anyone have an idea how to fix it ?

Thanks in advance.


The @XmlPath annotation was introduced in EclipseLink 2.1, since you ca see the org.eclipse.persistence.oxm.annotations package but not @XmlPath you are most likely using EclipseLink 2.0. As of today (October 14, 2011) the current release is EclipseLink 2.3.

Releases of EclipseLink can be obtained here:

  • http://www.eclipse.org/eclipselink/downloads/

For more information on @XmlPath

  • http://blog.bdoughan.com/search/label/XmlPath
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜