⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trmform.java

📁 用Struts+hibernate写的宠物医院
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.sean.pet.controller.form;

import java.util.HashSet;
import java.util.Set;

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.Petstore;
import com.sean.pet.hibernate.po.Treatment;

/** 
 * MyEclipse Struts
 * Creation date: 08-07-2008
 * 
 * XDoclet definition:
 * @struts.form name="trmForm"
 */
public class TrmForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/** money property */
	private Double money;

	/** content property */
	private String content;

	/** psid property */
	private String psid;

	/** id property */
	private String id;

	private Petstore petstore;
	
	private Set invoices = new HashSet(0);
	
	private Set pettreatments = new HashSet(0);
	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public Treatment valueOfUsers(){
		Treatment trm = new Treatment();
		trm.setId(this.id);
		trm.setContent(this.content);
		trm.setPetstore(this.petstore);
		trm.setInvoices(this.invoices);
		trm.setMoney(this.money);
		trm.setPettreatments(this.pettreatments);
		return trm;
	}
	
	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
	}

	/** 
	 * Returns the money.
	 * @return Double
	 */
	public Double getMoney() {
		return money;
	}

	/** 
	 * Set the money.
	 * @param money The money to set
	 */
	public void setMoney(Double money) {
		this.money = money;
	}

	/** 
	 * Returns the content.
	 * @return String
	 */
	public String getContent() {
		return content;
	}

	/** 
	 * Set the content.
	 * @param content The content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/** 
	 * Returns the psid.
	 * @return String
	 */
	public String getPsid() {
		return psid;
	}

	/** 
	 * Set the psid.
	 * @param psid The psid to set
	 */
	public void setPsid(String psid) {
		this.psid = psid;
	}

	/** 
	 * Returns the id.
	 * @return String
	 */
	public String getId() {
		return id;
	}

	/** 
	 * Set the id.
	 * @param id The id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	public Petstore getPetstore() {
//		PetstoreDao psDao = new PetstoreDaoImpl();
		return petstore;
	}

	public void setPetstore(Petstore petstore) {
		this.petstore = petstore;
	}

	public Set getInvoices() {
		return invoices;
	}

	public void setInvoices(Set invoices) {
		this.invoices = invoices;
	}

	public Set getPettreatments() {
		return pettreatments;
	}

	public void setPettreatments(Set pettreatments) {
		this.pettreatments = pettreatments;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -