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
@IdClass
you can only overwrite equals and hashcode and the problem will be solved, and also need implement java.io.Serializable