package org.tests.compositekeys.db;

import javax.persistence.*;

@Entity
public class ParcelLocation {
  @Id
  @Column(name = "parcellocid")
  private Long parcelLocId;

  private String location;

  @OneToOne
  @JoinColumn(name = "parcelid", referencedColumnName = "parcelid")
  private Parcel parcel;

  public Long getParcelLocId() {
    return parcelLocId;
  }

  public void setParcelLocId(Long parcelLocId) {
    this.parcelLocId = parcelLocId;
  }

  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }


  public Parcel getParcel() {
    return parcel;
  }

  public void setParcel(Parcel parcel) {
    this.parcel = parcel;
  }
}
