EntityManager persist() method does not insert record to database

前端 未结 9 937
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 11:52

I have problem with using EntityManager.persist(Object) method. Now when i get rid of other problems, by app work without Exception but object is not put in my data

9条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 12:36

    I was able to fix the same problem by adding the Entity to persistence.xml:

    
        org.hibernate.ejb.HibernatePersistence
        com.test.domain.local.Entity
        
        
    
    

提交回复
热议问题