package com.avaje.tests.model.info;

import com.avaje.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Version;

@Entity
public class InfoContact extends Model {

  @Id
  Long id;

  @Version
  Long version;

  String name;

  @ManyToOne(optional = false)
  InfoCompany company;

  public Long getId() {
    return id;
  }

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

  public String getName() {
    return name;
  }

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

  public Long getVersion() {
    return version;
  }

  public void setVersion(Long version) {
    this.version = version;
  }

  public InfoCompany getCompany() {
    return company;
  }

  public void setCompany(InfoCompany company) {
    this.company = company;
  }
}
