0

How can I use OpenJpa ,with using Persistence.xml configuration same we use in jpa, I dont want to use Enhance.xml.

klobin
  • 41
  • 1
  • 11

2 Answers2

0

If you are running in a JavaEE container you will get enhancement for free. The other option when running in a JSE environment is to configure the -javaagent.

Take a look at the section titled 'Explicit javaagent support'. As for JavaEE stuff, I'd suggest getting ahold of the Pro JPA 2 book. It is very good at describing usage of JPA in an EE environment.

Rick
  • 3,830
  • 1
  • 18
  • 16
0

If you rely on some non-IDE tool to build your app, you can enhance automatically during buildtime. For Maven, for example, see this

skegg99
  • 415
  • 2
  • 8