Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
Thanks, it worked!
Previous Topic:JPA implementation library warning
Next Topic:error: Invalid content (no root node)
Goto Forum:
  


Current Time: Fri Jul 25 00:29:33 EDT 2025

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

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

Back to the top