Unit Test JPA with JUnit H2 In Memory Database

You may also like...

  • Rajiv Mothilal

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

    • Hello Rajiv,

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

      Kr,
      Memorynotfound