org.hibernate.MappingException: Unknown entity:

后端 未结 3 1734
说谎
说谎 2021-01-01 23:26

I really want to understand what is going on with my code.

I have a standalone application which uses spring and Hibernate as JPA and I am trying to run the test usi

3条回答
  •  借酒劲吻你
    2021-01-02 00:07

    I've encountered the same problem and didn't find any good answer for this

    What worked for me was to declare my entity class in the persistence.xml file:

    
        
    
            com.company.maenad.core.model.News
            com.company.maenad.core.model.AdExtraInfo
    
        
    
    

提交回复
热议问题