kasavbere
kasavbere

Reputation: 6003

Cannot find symbol: @XmlInverseReference

I am following the tutorial at http://blog.bdoughan.com/2010/08/creating-restful-web-service-part-35.html. I copy and paste the files into netbeans (making sure it works as provided). @XmlInverseReference shows compile error. Besides import javax.persistence.* do I need to import something else?

Upvotes: 1

Views: 235

Answers (1)

MrLore
MrLore

Reputation: 3780

@XmlInverseReference is an annotation from EclipseLink MOXy used to denote a bidirectional relationship, you'll need to download EclipseLink too to use it. For more information see a further article from the same blog you linked which covers the annotations in further depth.

Upvotes: 1

Related Questions