package trail.entity.beans;

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

@Entity
@Table(name = "fund")
public class Fund implements Serializable {
  private int id;
  private String name;
  private double growthrate;

  public Fund () { }

  public Fund (String name, double growthrate) {
    this.name = name;
    this.growthrate = growthrate;
  }

  @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 double getGrowthrate () {
    return growthrate;
  }

  public void setGrowthrate (double growthrate) {
    this.growthrate = growthrate;
  }

}
