on 02-06-2009 11:05 AM
In EJB project with JPA Facet Iu2019m working without any problem for several days. But, after two weeks, JPA plug-in of Eclipse is not working fine.
When I try to generate DDL Iu2019m getting the following error window: There isnu2019t a registered persistence unit in the project. But this is not true. Curiously sometimes it works fine.
Can any body has any suggestion for correcting this issue?
Thanks in advanced.
Hi Throsten,
It works the first time but now Iu2019m experiencing the same inconvenient.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I had the same problem and luckily stumbled upon the solution today.
1. File persistence.xml is located in /ejbModule/META-INF. Path /build/classes is empty.
2. Right-click on the DC/project and select "Properties".
3. In "JPA", change parameter "Platform" or "Connection", then restore the original value. The purpose is to set a dirty flag which will make the IDE generate the missing stuff in path build/classes.
4. A copy of resource branch META-INF and the .classes files will appear below /build.
5. Right-click on the DC/Project and select "JPA-Tools -> Generate DDL".
Please let me know if it works for you.
Cheers,
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.