Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Copied entities to another project, now I get an error message
Copied entities to another project, now I get an error message [message #481549] Fri, 21 August 2009 13:42 Go to next message
Torben Putkonen is currently offline Torben PutkonenFriend
Messages: 34
Registered: July 2009
Member
I am not using Dali in my project, however I wanted to generate some
entities out of database tables and created a new JPA project (let's call
it "JPAProject"). After generating the entities I copied them to my
existing project, and deleted JPA project.

Now some of the entities show an error "This mapped class is not specified
in persistence unit "JPAProject", even though JPAProject is long gone and
there should be no references to it anywhere.

What can I do to fix it?
Re: Copied entities to another project, now I get an error message [message #481606 is a reply to message #481549] Fri, 21 August 2009 18:43 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
First make sure you are in the Project Explorer view, then right click on
your Java project, then select "Validate". This should clear any JPA
related errors from your entities. It appears that on a copy, the errors
come with the resource, and likely stay there until manually cleared.

Neil

Pasi Kovanen wrote:

> I am not using Dali in my project, however I wanted to generate some
> entities out of database tables and created a new JPA project (let's call
> it "JPAProject"). After generating the entities I copied them to my
> existing project, and deleted JPA project.

> Now some of the entities show an error "This mapped class is not specified
> in persistence unit "JPAProject", even though JPAProject is long gone and
> there should be no references to it anywhere.

> What can I do to fix it?
Re: Copied entities to another project, now I get an error message [message #481727 is a reply to message #481606] Mon, 24 August 2009 06:21 Go to previous message
Torben Putkonen is currently offline Torben PutkonenFriend
Messages: 34
Registered: July 2009
Member
Thanks, it worked!
Re: Copied entities to another project, now I get an error message [message #617496 is a reply to message #481549] Fri, 21 August 2009 18:43 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
First make sure you are in the Project Explorer view, then right click on
your Java project, then select "Validate". This should clear any JPA
related errors from your entities. It appears that on a copy, the errors
come with the resource, and likely stay there until manually cleared.

Neil

Pasi Kovanen wrote:

> I am not using Dali in my project, however I wanted to generate some
> entities out of database tables and created a new JPA project (let's call
> it "JPAProject"). After generating the entities I copied them to my
> existing project, and deleted JPA project.

> Now some of the entities show an error "This mapped class is not specified
> in persistence unit "JPAProject", even though JPAProject is long gone and
> there should be no references to it anywhere.

> What can I do to fix it?
Re: Copied entities to another project, now I get an error message [message #617502 is a reply to message #481606] Mon, 24 August 2009 06:21 Go to previous message
Torben Putkonen is currently offline Torben PutkonenFriend
Messages: 34
Registered: July 2009
Member
Thanks, it worked!
Previous Topic:JPA implementation library warning
Next Topic:error: Invalid content (no root node)
Goto Forum:
  


Current Time: Tue Mar 19 10:16:04 GMT 2024

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

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

Back to the top