I can\'t modify database and add id column so i need to add primary key on pair group_id+username
@Entity @Table(name = "group") @Data public class Grou