Hibernate unknown entity (not missing @Entity or import javax.persistence.Entity )

前端 未结 6 1439
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 13:22

I\'ve got a really simple class:

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.pers         


        
6条回答
  •  鱼传尺愫
    2020-12-16 13:42

    I forgot to add the hbm.xml mapping into my cfg.xml file. As soon as I added it, this exception disappeared.

    
    

提交回复
热议问题