IllegalArgumentException: expecting IdClass mapping

前端 未结 3 710
悲&欢浪女
悲&欢浪女 2020-12-10 14:44

During deploying my app I occurs on that exception. I have a lot of class in my app and I dont know where I must to place @IdClass and what does this exception

3条回答
  •  無奈伤痛
    2020-12-10 15:16

    you can only overwrite equals and hashcode and the problem will be solved, and also need implement java.io.Serializable

提交回复
热议问题