pgId と pgName の両方を、両方の pgId と pgName が割り当てられた値である複合キーとして作成したいと考えています。どうすればいいのかわからない?ネットでは、複合キー列が他のテーブルの列を参照しているが、この種のシナリオではない例を取得していますか?
@Entity
@Table(name = "PersonDetails")
public class PersonDetailsData implements Serializable {
  private static final long serialVersionUID    = 1L;
  @Id
  @Basic
  private int               pgId;
  @Basic(optional = true)
  @Column(nullable = true)
  private int               orgId;
  @Basic(optional = true)
  @Column(nullable = true)
  private String            pgName;
   public PersonWikiDetailsData() {
  }
  public int getPpId() {
    return ppId;
  }
  public void setPpId(int ppId) {
this.ppId = ppId;
  }
  public String getSpaceName() {
return spaceName;
  }
  public void setSpaceName(String spaceName) {
this.spaceName = spaceName;
  }
  }