Copied entities to another project, now I get an error message [message #481549] |
Fri, 21 August 2009 09:42  |
Eclipse User |
|
|
|
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 #617496 is a reply to message #481549] |
Fri, 21 August 2009 14:43  |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.05996 seconds