package com.hibernate.test;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Student")
public class Student {
private int id;
private String name;
/**
* id
*
* @return the id
* @since CodingExample Ver(编码范例查看) 1.0
*/
@Id
@GeneratedValue
public int getId() {
return id;
}
/**
*
* @param id
* the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* name
*
* @return the name
* @since CodingExample Ver(编码范例查看) 1.0
*/
@Column(name="name")
public String getName() {
return name;
}
/**
*
* @param name
* the name to set
*/
public void setName(String name) {
this.name = name;
}
}