How to use an auto-generating id and composite key for same entity using @IdClass? - Java Community | Help. Code. Learn.