开发者

Cannot import JABX XmlPath class

开发者 https://www.devze.com 2023-04-12 02:50 出处:网络
i\'m working on application requiring unmarshalling action. here\'s my input file structure : <root>

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

精彩评论

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

关注公众号