cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with NWDS 7.1 EHP1 and JPA persistence unit

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Throsten,

It works the first time but now Iu2019m experiencing the same inconvenient.

Former Member
0 Kudos

Hi Sergi,

Which platform are you using as a persistence provider?

Ensure that it is "SAP implementation of JPA"...

Regards,

Yordan

former_member182046
Contributor
0 Kudos

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