41) empDTO

hahahoho셍·2021년 5월 1일
0

자바 공부

목록 보기
42/97
package ex07_jdbc;

// dto : 데이터를 담아서 옮기는 목적
public class EMPLOYEES {
	private int employee_id;
	private String first_name;
	private int salary;
	private String hire_date;
	
	public EMPLOYEES() {
		super();
	}

	public EMPLOYEES(int employee_id, String first_name, int salary, String hire_date) {
		super();
		this.employee_id = employee_id;
		this.first_name = first_name;
		this.salary = salary;
		this.hire_date = hire_date;
	}

	public int getEmployee_id() {
		return employee_id;
	}

	public void setEmployee_id(int employee_id) {
		this.employee_id = employee_id;
	}

	public String getFirst_name() {
		return first_name;
	}

	public void setFirst_name(String first_name) {
		this.first_name = first_name;
	}

	public int getSalary() {
		return salary;
	}

	public void setSalary(int salary) {
		this.salary = salary;
	}

	public String getHire_date() {
		return hire_date;
	}

	public void setHire_date(String hire_date) {
		this.hire_date = hire_date;
	}

	@Override
	public String toString() {
		return "EMPLOYEES [employee_id=" + employee_id + ", first_name=" + first_name + ", salary=" + salary
				+ ", hire_date=" + hire_date + "]";
	}

	
}
profile
그냥 공부 한거 적는 벨로그 하하하핳ㅎ하하하핳하ㅏ

0개의 댓글

관련 채용 정보