ssh練手(五)Batch.java

package com.chenjia.batchsys.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author chenjia
 *
 */

@Entity
@Table(name="batch_inf")
public class Batch {
    @Id @Column(name="batch_id")
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    @Column(name="batch_name")
    private String name;
    @Column(name="batch_type")
    private String type;
    @Column(name="batch_ly")
    private String ly;
    @Column(name="batch_nation")
    private String nation;
    @Column(name="batch_action")
    private String action;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getLy() {
        return ly;
    }
    public void setLy(String ly) {
        this.ly = ly;
    }
    public String getNation() {
        return nation;
    }
    public void setNation(String nation) {
        this.nation = nation;
    }
    public String getAction() {
        return action;
    }
    public void setAction(String action) {
        this.action = action;
    }
    
    
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章