U moet dit doen:
@ManyToOne
@JoinColumns({
@JoinColumn(name="gameid", referencedColumnName = "gameid", insertable = false, updatable = false ),
@JoinColumn(name="groupTag", referencedColumnName = "grouptag", insertable = false, updatable = false)
})
private Group group;
BEWERKEN :zoals vermeld in de opmerkingen, @JoinColumn
is een herhaalbare annotatie (sinds Java 8 ) die niet verpakt hoeft te worden. Dit vereenvoudigt de oplossing om:
@ManyToOne
@JoinColumn(name="gameid", referencedColumnName = "gameid", insertable = false, updatable = false ),
@JoinColumn(name="groupTag", referencedColumnName = "grouptag", insertable = false, updatable = false)
private Group group;