Let\'s say I have two entities:
@Entity public class WarehouseEntity { @Id @Column(name = "id", unique = true, length = 24) private String id; private S