Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister

前端 未结 6 1557
鱼传尺愫
鱼传尺愫 2020-12-28 12:33

I am actually new to hibernate and tried to set up 2 classes. Account and Person. Now all i try to do is create a one to one bidirectional dependency using annotations. Here

6条回答
  •  天涯浪人
    2020-12-28 12:59

    in my case, the problem got solved only by implementing serializable as below:

    @Entity @Table(name = "User" , uniqueConstraints = { @UniqueConstraint(columnNames = {"nam"}) }) public class User extends GenericT implements Serializable

提交回复
热议问题