Class “model.Address” is listed in the persistence.xml file but not mapped

后端 未结 9 1140
梦如初夏
梦如初夏 2020-12-24 11:59

I have created a JPA project. In that Eclipse displays the following error on the entity class.

Class \"model.Address\" is listed in the

9条回答
  •  孤城傲影
    2020-12-24 12:34

    It should be written like:

    @Entity
    **@Table(name="Address",schema="ABCD")** `
    

    ...or it could be written like :

    @Entity
    public class Address {
    
    } 
    

提交回复
热议问题