package com.zenika.blog.mybatis.impl.jpa;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="cours")
public class Cours {
@Id
@Column(name="id")
private Long id;
@Column(name="nom")
private String nom;
@Column(name="duree")
private Integer duree;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public Integer getDuree() {
return duree;
}
public void setDuree(Integer duree) {
this.duree = duree;
}
}