Internal HSQL database complains about privileges

前端 未结 8 1909
时光取名叫无心
时光取名叫无心 2020-12-10 03:58

I\'m setting up a standalone Java service with an in-process, in-memory HSQL database.

Persistence.xml



        
8条回答
  •  青春惊慌失措
    2020-12-10 04:37

    When I had this error, I realised that I was using the wrong provider class in persistence.xml

    For Hibernate it should be

    org.hibernate.ejb.HibernatePersistence
    

    And for EclipseLink it should be

    org.eclipse.persistence.jpa.PersistenceProvider
    

    You should also note that different names are used in persistence.xml and when creating Persistence.createEntityManagerFactory("name")

提交回复
热议问题