package trail.entity.beans;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "investor")
public class Investor implements Serializable {
  private int id;
  private String name;
  private int startAge;
  private int endAge;

  public Investor () { }

  public Investor (String name, int startAge, int endAge) {
    this.name = name;
    this.startAge = startAge;
    this.endAge = endAge;
  }

  @Id
  @GeneratedValue
  public int getId () {
    return id;
  }

  public void setId (int id) {
    this.id = id;
  }

  public String getName () {
    return name;
  }

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

  public int getStartAge () {
    return startAge;
  }
  public void setStartAge (int startAge) {
    this.startAge = startAge;
  }

  public int getEndAge () {
    return endAge;
  }
  public void setEndAge (int endAge) {
    this.endAge = endAge;
  }

}

