package org.tests.model.family;

import org.tests.model.basic.EBasic;

import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

@MappedSuperclass
public abstract class InheritablePerson implements Serializable {
  private static final long serialVersionUID = 1L;

  @Id
  private Integer identifier;

  private String name;

  private Integer age;

  @ManyToOne
  private EBasic someBean;

  public Integer getIdentifier() {
    return identifier;
  }

  public void setIdentifier(Integer identifier) {
    this.identifier = identifier;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public void setSomeBean(EBasic someBean) {
    this.someBean = someBean;
  }

  public EBasic getSomeBean() {
    return someBean;
  }

}
