package com.sap.olingo.jpa.processor.core.testmodel;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.IdClass;
import jakarta.persistence.Table;

@Entity
@IdClass(CountryKey.class)
@Table(schema = "\"OLINGO\"", name = "\"CountryDescription\"")
public class Country {

  @Id
  @Column(name = "\"ISOCode\"")
  private String code;

  @Id
  @Column(name = "\"LanguageISO\"")
  private String language;

  @Column(name = "\"Name\"", length = 100)
  private String name;

  public String getCode() {
    return code;
  }

  public void setCode(final String code) {
    this.code = code;
  }
}
