Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JPA Annotations(Handling JPA Annotations in Eclipse)
JPA Annotations [message #553808] Wed, 18 August 2010 23:46 Go to next message
Harrison Curtis is currently offline Harrison CurtisFriend
Messages: 6
Registered: August 2010
Junior Member
I just imported a project that was successfully built using Maven. I did a MVN eclipse:eclipse before importing the project. Many of the source files are JPA entity objects using annotations to describe the entities. Every one of the JPA annotations as flagged as an error. For example the @Entity error says:

"Entity can't be resolved to a type"


This must be a configuration issue with Eclipse or this project. Can someone point me to a URL that explains the Eclipse configuration required so the JPA annotations are recognized correctly.

I added the eclipselink plugin and it shows to be operational, so there must be another issue.
Re: JPA Annotations [message #554374 is a reply to message #553808] Sun, 22 August 2010 16:04 Go to previous message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Harrison Curtis" <bud.curtis@gmail.com> wrote in message
news:i4hrd7$g9t$1@build.eclipse.org...
>I just imported a project that was successfully built using Maven. I did a
>MVN eclipse:eclipse before importing the project. Many of the source files
>are JPA entity objects using annotations to describe the entities. Every
>one of the JPA annotations as flagged as an error. For example the @Entity
>error says:
>
> "Entity can't be resolved to a type"
>
> This must be a configuration issue with Eclipse or this project. Can
> someone point me to a URL that explains the Eclipse configuration required
> so the JPA annotations are recognized correctly.
>
> I added the eclipselink plugin and it shows to be operational, so there
> must be another issue.

Sounds like maybe the Maven plugin didn't add everything needed to the
classpath? I think the JPA annotations are defined in one of the extended
jars in the JRE/JDK, so perhaps you need to select a different JRE (in the
Java Build Path in Eclipse), or manually add some of the extended libraries?
Previous Topic:Fully qualified name of inner classes
Next Topic:Are there any existing Structured Editors for Java?
Goto Forum:
  


Current Time: Fri Apr 26 07:07:01 GMT 2024

Powered by FUDForum. Page generated in 0.03066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top