skip to Main Content

Postgresql – Using an @Entity in an @IdClass as @Id

I have an entity that looks like this @Entity @IdClass(AId.class) class A { @Id private String userName @Id @NotNull @JoinColumn(name = "location_id", referenceColumnName = "id", nullable=false, foreignKey = @ForeignKey(name = ...)) private Location location; private String userInformation; } The class…

VIEW QUESTION
Back To Top
Search