Unit Test JPA with JUnit H2 In Memory Database

You may also like...

Leave a Reply

2 Comments on "Unit Test JPA with JUnit H2 In Memory Database"

avatar
  Subscribe  
newest oldest
Notify of
Rajiv Mothilal
Guest
Rajiv Mothilal

Hi Memorynotfound. The persistence.xml requires a provider. which should be used?

Memorynotfound.com
Guest
Memorynotfound.com

Hello Rajiv,

It’s not required, but you can use the following HibernatePersistenceProvider</code.
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

Kr,
Memorynotfound