WildFly + Hibernate

后端 未结 2 1035
猫巷女王i
猫巷女王i 2020-12-17 04:40

I\'ve been struggling for days with configuring Hibernate and run it on WildFly.

Here is my code:

META-INF/persistence.xml



        
2条回答
  •  一向
    一向 (楼主)
    2020-12-17 05:15

    In file persistence.xml you must include class to persist

    org.hibernate.jpa.HibernatePersistenceProvider
    
    package.User
    
    
        
        
        
        
        
        
        
        
    
    

    You can include as many classes as you like

提交回复
热议问题