Reputation: 143
I use RapidClipse 4.0.1.2...
After working a while on a project I got a lot of errors like "The type someEntity_ is already defined".
In this case I didn't define the entities myself.
All will be done by RapidClipse entity manager function.
I tried to clean up the project, I updated and rebuild it.
All without success.
I assume, that this is still a bug in RapidClipse, or it is a setting, which is wrong.
I checked with explorer one of the files and found following locations:
1) c:/MyWorkspace/workspace/rc07/target/classes/com/myuser/rc07/dal/
In this path is KontoDAO_.class
2) c:/MyWorkspace/workspace/rc07/target/geranted-sources/annotations/com/myuser/rc07/dal/
In this path is KontoDAO_.java
3) c:/MyWorkspace/.metadata/.plugins.org.eclipse.wst.server.core
/tmp0/wtpwebapps/rc07/WEB-INF/classes/com/myuser/rc07/dal/
In this path is KontoDAO_.class
4) c:/MyWorkspace/workspace/rc07/.apt_generated/com/myuser/rc07/dal/
In this path is KontoDAO_.java
5) in the recycle of folder c:/MyWorkspace/workspace I had around 30 versions of KontoDAO_....
Does anyone know how to fix it, or how to set up the project to prevent this?
Thank you in advance
rgds OpaHeinz
Upvotes: 0
Views: 834
Reputation: 290
You should look into the target folder. Whenever you import entities after the project rebuild (in case you have automatic rebuild) these files get created in target/generated-sources/annotation folder.
Check there.
Upvotes: 0