📄 empform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.sean.pet.controller.form;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import com.sean.pet.hibernate.po.Employee;
import com.sean.pet.hibernate.po.Petstore;
/**
* MyEclipse Struts
* Creation date: 08-05-2008
*
* XDoclet definition:
* @struts.form name="empForm"
*/
public class EmpForm extends ActionForm {
/*
* Generated Methods
*/
private String id;
private String name;
private String address;
private String tel;
private Date birthday;
private String sex;
private String insurance;
private String job;
private Double sal;
private Petstore petStore;
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
public Employee valueOfUsers(){
Employee emp = new Employee();
emp.setId(this.id);
emp.setName(this.name);
emp.setAddress(this.address);
emp.setTel(this.tel);
emp.setBirthday(this.birthday);
emp.setSex(this.sex);
emp.setInsurance(this.insurance);
emp.setJob(this.job);
emp.setSal(this.sal);
emp.setPetstore(this.petStore);
return emp;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getInsurance() {
return insurance;
}
public void setInsurance(String insurance) {
this.insurance = insurance;
}
public String getJob() {
return job;
}
public void setJob(String job) {
this.job = job;
}
public Double getSal() {
return sal;
}
public void setSal(Double sal) {
this.sal = sal;
}
public Petstore getPetStore() {
return petStore;
}
public void setPetStore(Petstore petStore) {
this.petStore = petStore;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -