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 09:42 Go to next message
Torben Putkonen is currently offline Torben Putkonen
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 14:43 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 469
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 02:21 Go to previous message
Torben Putkonen is currently offline Torben Putkonen
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 14:43 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
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 02:21 Go to previous message
Torben Putkonen is currently offline Torben Putkonen
Messages: 34
Registered: July 2009
Member
Thanks, it worked!
Previous Topic:Copied entities to another project, now I get an error message
Next Topic:JPA implementation library warning
Goto Forum:
  


Current Time: Fri Aug 22 23:41:30 EDT 2014

Powered by FUDForum. Page generated in 0.09439 seconds