javabean的妙用-eclipse结合hibernate插件、struts插件快速生成源代码(示例代码)
来源:互联网 发布:app怎么制作编程语言 编辑:程序博客网 时间:2024/05/16 11:43
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
package com.sztelecom.contract.cmfee.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the FEECHANGE table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="FEECHANGE"
*/
public abstract class BaseFeechange implements Serializable {
public static String REF = "Feechange";
public static String PROP_ZFZT = "ZFZT";
public static String PROP_KLYS = "KLYS";
public static String PROP_QDSX = "QDSX";
public static String PROP_JGFK = "JGFK";
public static String PROP_TCRYJ = "TCRYJ";
public static String PROP_ZFBZ = "ZFBZ";
public static String PROP_QTYHMS = "QTYHMS";
public static String PROP_YWHM = "YWHM";
public static String PROP_CJR = "CJR";
public static String PROP_KHJLDH = "KHJLDH";
public static String PROP_BGR = "BGR";
public static String PROP_KHMC = "KHMC";
public static String PROP_BGSJ = "BGSJ";
public static String PROP_YWLX = "YWLX";
public static String PROP_CJSJ = "CJSJ";
public static String PROP_XYQK = "XYQK";
public static String PROP_YYSM = "YYSM";
public static String PROP_YWSD = "YWSD";
public static String PROP_WGBZ = "WGBZ";
public static String PROP_KHJL = "KHJL";
public static String PROP_FYLX = "FYLX";
// constructors
public BaseFeechange () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseFeechange (java.lang.Integer zFBZ) {
this.setZFBZ(zFBZ);
initialize();
}
/**
* Constructor for required fields
*/
public BaseFeechange (
java.lang.Integer zFBZ,
java.lang.String kHMC,
java.lang.String yWLX,
java.lang.String fYLX,
java.lang.String zFZT,
java.lang.String cJR,
java.lang.String cJSJ) {
this.setZFBZ(zFBZ);
this.setKHMC(kHMC);
this.setYWLX(yWLX);
this.setFYLX(fYLX);
this.setZFZT(zFZT);
this.setCJR(cJR);
this.setCJSJ(cJSJ);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer zFBZ;
// fields
private java.lang.String kHMC;
private java.lang.String qDSX;
private java.lang.String yWHM;
private java.lang.String kHJL;
private java.lang.String kHJLDH;
private java.lang.String yWSD;
private java.lang.String yWLX;
private java.lang.String fYLX;
private java.lang.String xYQK;
private java.lang.String qTYHMS;
private java.lang.String kLYS;
private java.sql.Clob yYSM;
private java.lang.String zFZT;
private java.lang.String bGR;
private java.lang.String bGSJ;
private java.lang.String cJR;
private java.lang.String cJSJ;
private java.lang.String jGFK;
private java.lang.String tCRYJ;
private java.lang.String wGBZ;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="hilo"
* column="ZFBZ"
*/
public java.lang.Integer getZFBZ () {
return zFBZ;
}
/**
* Set the unique identifier of this class
* @param zFBZ the new ID
*/
public void setZFBZ (java.lang.Integer zFBZ) {
this.zFBZ = zFBZ;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: KHMC
*/
public java.lang.String getKHMC () {
return kHMC;
}
/**
* Set the value related to the column: KHMC
* @param kHMC the KHMC value
*/
public void setKHMC (java.lang.String kHMC) {
this.kHMC = kHMC;
}
/**
* Return the value associated with the column: QDSX
*/
public java.lang.String getQDSX () {
return qDSX;
}
/**
* Set the value related to the column: QDSX
* @param qDSX the QDSX value
*/
public void setQDSX (java.lang.String qDSX) {
this.qDSX = qDSX;
}
/**
* Return the value associated with the column: YWHM
*/
public java.lang.String getYWHM () {
return yWHM;
}
/**
* Set the value related to the column: YWHM
* @param yWHM the YWHM value
*/
public void setYWHM (java.lang.String yWHM) {
this.yWHM = yWHM;
}
/**
* Return the value associated with the column: KHJL
*/
public java.lang.String getKHJL () {
return kHJL;
}
/**
* Set the value related to the column: KHJL
* @param kHJL the KHJL value
*/
public void setKHJL (java.lang.String kHJL) {
this.kHJL = kHJL;
}
/**
* Return the value associated with the column: KHJLDH
*/
public java.lang.String getKHJLDH () {
return kHJLDH;
}
/**
* Set the value related to the column: KHJLDH
* @param kHJLDH the KHJLDH value
*/
public void setKHJLDH (java.lang.String kHJLDH) {
this.kHJLDH = kHJLDH;
}
/**
* Return the value associated with the column: YWSD
*/
public java.lang.String getYWSD () {
return yWSD;
}
/**
* Set the value related to the column: YWSD
* @param yWSD the YWSD value
*/
public void setYWSD (java.lang.String yWSD) {
this.yWSD = yWSD;
}
/**
* Return the value associated with the column: YWLX
*/
public java.lang.String getYWLX () {
return yWLX;
}
/**
* Set the value related to the column: YWLX
* @param yWLX the YWLX value
*/
public void setYWLX (java.lang.String yWLX) {
this.yWLX = yWLX;
}
/**
* Return the value associated with the column: FYLX
*/
public java.lang.String getFYLX () {
return fYLX;
}
/**
* Set the value related to the column: FYLX
* @param fYLX the FYLX value
*/
public void setFYLX (java.lang.String fYLX) {
this.fYLX = fYLX;
}
/**
* Return the value associated with the column: XYQK
*/
public java.lang.String getXYQK () {
return xYQK;
}
/**
* Set the value related to the column: XYQK
* @param xYQK the XYQK value
*/
public void setXYQK (java.lang.String xYQK) {
this.xYQK = xYQK;
}
/**
* Return the value associated with the column: QTYHMS
*/
public java.lang.String getQTYHMS () {
return qTYHMS;
}
/**
* Set the value related to the column: QTYHMS
* @param qTYHMS the QTYHMS value
*/
public void setQTYHMS (java.lang.String qTYHMS) {
this.qTYHMS = qTYHMS;
}
/**
* Return the value associated with the column: KLYS
*/
public java.lang.String getKLYS () {
return kLYS;
}
/**
* Set the value related to the column: KLYS
* @param kLYS the KLYS value
*/
public void setKLYS (java.lang.String kLYS) {
this.kLYS = kLYS;
}
/**
* Return the value associated with the column: YYSM
*/
public java.sql.Clob getYYSM () {
return yYSM;
}
/**
* Set the value related to the column: YYSM
* @param yYSM the YYSM value
*/
public void setYYSM (java.sql.Clob yYSM) {
this.yYSM = yYSM;
}
/**
* Return the value associated with the column: ZFZT
*/
public java.lang.String getZFZT () {
return zFZT;
}
/**
* Set the value related to the column: ZFZT
* @param zFZT the ZFZT value
*/
public void setZFZT (java.lang.String zFZT) {
this.zFZT = zFZT;
}
/**
* Return the value associated with the column: BGR
*/
public java.lang.String getBGR () {
return bGR;
}
/**
* Set the value related to the column: BGR
* @param bGR the BGR value
*/
public void setBGR (java.lang.String bGR) {
this.bGR = bGR;
}
/**
* Return the value associated with the column: BGSJ
*/
public java.lang.String getBGSJ () {
return bGSJ;
}
/**
* Set the value related to the column: BGSJ
* @param bGSJ the BGSJ value
*/
public void setBGSJ (java.lang.String bGSJ) {
this.bGSJ = bGSJ;
}
/**
* Return the value associated with the column: CJR
*/
public java.lang.String getCJR () {
return cJR;
}
/**
* Set the value related to the column: CJR
* @param cJR the CJR value
*/
public void setCJR (java.lang.String cJR) {
this.cJR = cJR;
}
/**
* Return the value associated with the column: CJSJ
*/
public java.lang.String getCJSJ () {
return cJSJ;
}
/**
* Set the value related to the column: CJSJ
* @param cJSJ the CJSJ value
*/
public void setCJSJ (java.lang.String cJSJ) {
this.cJSJ = cJSJ;
}
/**
* Return the value associated with the column: JGFK
*/
public java.lang.String getJGFK () {
return jGFK;
}
/**
* Set the value related to the column: JGFK
* @param jGFK the JGFK value
*/
public void setJGFK (java.lang.String jGFK) {
this.jGFK = jGFK;
}
/**
* Return the value associated with the column: TCRYJ
*/
public java.lang.String getTCRYJ () {
return tCRYJ;
}
/**
* Set the value related to the column: TCRYJ
* @param tCRYJ the TCRYJ value
*/
public void setTCRYJ (java.lang.String tCRYJ) {
this.tCRYJ = tCRYJ;
}
/**
* Return the value associated with the column: WGBZ
*/
public java.lang.String getWGBZ () {
return wGBZ;
}
/**
* Set the value related to the column: WGBZ
* @param wGBZ the WGBZ value
*/
public void setWGBZ (java.lang.String wGBZ) {
this.wGBZ = wGBZ;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.sztelecom.contract.cmfee.sub.Feechange)) return false;
else {
com.sztelecom.contract.cmfee.sub.Feechange feechange = (com.sztelecom.contract.cmfee.sub.Feechange) obj;
if (null == this.getZFBZ() || null == feechange.getZFBZ()) return false;
else return (this.getZFBZ().equals(feechange.getZFBZ()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getZFBZ()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getZFBZ().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
package com.sztelecom.contract.cmfee.sub;
import com.sztelecom.contract.cmfee.base.BaseFeechange;
public class Feechange extends BaseFeechange {
private static final long serialVersionUID = 1L;
/*[CONSTRUCTOR MARKER BEGIN]*/
public Feechange () {
super();
}
/**
* Constructor for primary key
*/
public Feechange (java.lang.Integer zFBZ) {
super(zFBZ);
}
/**
* Constructor for required fields
*/
public Feechange (
java.lang.Integer zFBZ,
java.lang.String kHMC,
java.lang.String yWLX,
java.lang.String fYLX,
java.lang.String zFZT,
java.lang.String cJR,
java.lang.String cJSJ) {
super (
zFBZ,
kHMC,
yWLX,
fYLX,
zFZT,
cJR,
cJSJ);
}
/*[CONSTRUCTOR MARKER END]*/
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.0/xslt/JavaClass.xsl
package com.yourcompany.struts.form;
import java.sql.Clob;
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;
/**
* MyEclipse Struts
* Creation date: 07-27-2006
*
* XDoclet definition:
* @struts.form name="feechangeForm"
*/
public class FeechangeForm extends ActionForm {
// --------------------------------------------------------- Instance Variables
/** yWHM property */
private String yWHM;
/** qTYHMS property */
private String qTYHMS;
/** bGSJ property */
private String bGSJ;
/** wGBZ property */
private String wGBZ;
/** kLYS property */
private String kLYS;
/** tCRYJ property */
private String tCRYJ;
/** bGR property */
private String bGR;
/** cJR property */
private String cJR;
/** xYQK property */
private String xYQK;
/** zFZT property */
private String zFZT;
/** fYLX property */
private String fYLX;
/** qDSX property */
private String qDSX;
/** kHMC property */
private String kHMC;
/** yWLX property */
private String yWLX;
/** zFBZ property */
private Integer zFBZ;
/** jGFK property */
private String jGFK;
/** feechangeitems property */
private Set feechangeitems;
/** yYSM property */
private Clob yYSM;
/** kHJLDH property */
private String kHJLDH;
/** yWSD property */
private String yWSD;
/** cJSJ property */
private String cJSJ;
/** kHJL property */
private String kHJL;
// --------------------------------------------------------- Methods
/**
* 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
}
/**
* Returns the yWHM.
* @return String
*/
public String getYWHM() {
return yWHM;
}
/**
* Set the yWHM.
* @param yWHM The yWHM to set
*/
public void setYWHM(String yWHM) {
this.yWHM = yWHM;
}
/**
* Returns the qTYHMS.
* @return String
*/
public String getQTYHMS() {
return qTYHMS;
}
/**
* Set the qTYHMS.
* @param qTYHMS The qTYHMS to set
*/
public void setQTYHMS(String qTYHMS) {
this.qTYHMS = qTYHMS;
}
/**
* Returns the bGSJ.
* @return String
*/
public String getBGSJ() {
return bGSJ;
}
/**
* Set the bGSJ.
* @param bGSJ The bGSJ to set
*/
public void setBGSJ(String bGSJ) {
this.bGSJ = bGSJ;
}
/**
* Returns the wGBZ.
* @return String
*/
public String getWGBZ() {
return wGBZ;
}
/**
* Set the wGBZ.
* @param wGBZ The wGBZ to set
*/
public void setWGBZ(String wGBZ) {
this.wGBZ = wGBZ;
}
/**
* Returns the kLYS.
* @return String
*/
public String getKLYS() {
return kLYS;
}
/**
* Set the kLYS.
* @param kLYS The kLYS to set
*/
public void setKLYS(String kLYS) {
this.kLYS = kLYS;
}
/**
* Returns the tCRYJ.
* @return String
*/
public String getTCRYJ() {
return tCRYJ;
}
/**
* Set the tCRYJ.
* @param tCRYJ The tCRYJ to set
*/
public void setTCRYJ(String tCRYJ) {
this.tCRYJ = tCRYJ;
}
/**
* Returns the bGR.
* @return String
*/
public String getBGR() {
return bGR;
}
/**
* Set the bGR.
* @param bGR The bGR to set
*/
public void setBGR(String bGR) {
this.bGR = bGR;
}
/**
* Returns the cJR.
* @return String
*/
public String getCJR() {
return cJR;
}
/**
* Set the cJR.
* @param cJR The cJR to set
*/
public void setCJR(String cJR) {
this.cJR = cJR;
}
/**
* Returns the xYQK.
* @return String
*/
public String getXYQK() {
return xYQK;
}
/**
* Set the xYQK.
* @param xYQK The xYQK to set
*/
public void setXYQK(String xYQK) {
this.xYQK = xYQK;
}
/**
* Returns the zFZT.
* @return String
*/
public String getZFZT() {
return zFZT;
}
/**
* Set the zFZT.
* @param zFZT The zFZT to set
*/
public void setZFZT(String zFZT) {
this.zFZT = zFZT;
}
/**
* Returns the fYLX.
* @return String
*/
public String getFYLX() {
return fYLX;
}
/**
* Set the fYLX.
* @param fYLX The fYLX to set
*/
public void setFYLX(String fYLX) {
this.fYLX = fYLX;
}
/**
* Returns the qDSX.
* @return String
*/
public String getQDSX() {
return qDSX;
}
/**
* Set the qDSX.
* @param qDSX The qDSX to set
*/
public void setQDSX(String qDSX) {
this.qDSX = qDSX;
}
/**
* Returns the kHMC.
* @return String
*/
public String getKHMC() {
return kHMC;
}
/**
* Set the kHMC.
* @param kHMC The kHMC to set
*/
public void setKHMC(String kHMC) {
this.kHMC = kHMC;
}
/**
* Returns the yWLX.
* @return String
*/
public String getYWLX() {
return yWLX;
}
/**
* Set the yWLX.
* @param yWLX The yWLX to set
*/
public void setYWLX(String yWLX) {
this.yWLX = yWLX;
}
/**
* Returns the zFBZ.
* @return Integer
*/
public Integer getZFBZ() {
return zFBZ;
}
/**
* Set the zFBZ.
* @param zFBZ The zFBZ to set
*/
public void setZFBZ(Integer zFBZ) {
this.zFBZ = zFBZ;
}
/**
* Returns the jGFK.
* @return String
*/
public String getJGFK() {
return jGFK;
}
/**
* Set the jGFK.
* @param jGFK The jGFK to set
*/
public void setJGFK(String jGFK) {
this.jGFK = jGFK;
}
/**
* Returns the feechangeitems.
* @return Set
*/
public Set getFeechangeitems() {
return feechangeitems;
}
/**
* Set the feechangeitems.
* @param feechangeitems The feechangeitems to set
*/
public void setFeechangeitems(Set feechangeitems) {
this.feechangeitems = feechangeitems;
}
/**
* Returns the yYSM.
* @return Clob
*/
public Clob getYYSM() {
return yYSM;
}
/**
* Set the yYSM.
* @param yYSM The yYSM to set
*/
public void setYYSM(Clob yYSM) {
this.yYSM = yYSM;
}
/**
* Returns the kHJLDH.
* @return String
*/
public String getKHJLDH() {
return kHJLDH;
}
/**
* Set the kHJLDH.
* @param kHJLDH The kHJLDH to set
*/
public void setKHJLDH(String kHJLDH) {
this.kHJLDH = kHJLDH;
}
/**
* Returns the yWSD.
* @return String
*/
public String getYWSD() {
return yWSD;
}
/**
* Set the yWSD.
* @param yWSD The yWSD to set
*/
public void setYWSD(String yWSD) {
this.yWSD = yWSD;
}
/**
* Returns the cJSJ.
* @return String
*/
public String getCJSJ() {
return cJSJ;
}
/**
* Set the cJSJ.
* @param cJSJ The cJSJ to set
*/
public void setCJSJ(String cJSJ) {
this.cJSJ = cJSJ;
}
/**
* Returns the kHJL.
* @return String
*/
public String getKHJL() {
return kHJL;
}
/**
* Set the kHJL.
* @param kHJL The kHJL to set
*/
public void setKHJL(String kHJL) {
this.kHJL = kHJL;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<html>
<head>
<title>JSP for feechangeForm form</title>
</head>
<body>
<html:form action="/feechange">
bGR : <html:text property="bGR"/><html:errors property="bGR"/><br/>
bGSJ : <html:text property="bGSJ"/><html:errors property="bGSJ"/><br/>
cJR : <html:text property="cJR"/><html:errors property="cJR"/><br/>
cJSJ : <html:text property="cJSJ"/><html:errors property="cJSJ"/><br/>
feechangeitems : <html:text property="feechangeitems"/><html:errors property="feechangeitems"/><br/>
fYLX : <html:text property="fYLX"/><html:errors property="fYLX"/><br/>
jGFK : <html:text property="jGFK"/><html:errors property="jGFK"/><br/>
kHJL : <html:text property="kHJL"/><html:errors property="kHJL"/><br/>
kHJLDH : <html:text property="kHJLDH"/><html:errors property="kHJLDH"/><br/>
kHMC : <html:text property="kHMC"/><html:errors property="kHMC"/><br/>
kLYS : <html:text property="kLYS"/><html:errors property="kLYS"/><br/>
qDSX : <html:text property="qDSX"/><html:errors property="qDSX"/><br/>
qTYHMS : <html:text property="qTYHMS"/><html:errors property="qTYHMS"/><br/>
tCRYJ : <html:text property="tCRYJ"/><html:errors property="tCRYJ"/><br/>
wGBZ : <html:text property="wGBZ"/><html:errors property="wGBZ"/><br/>
xYQK : <html:text property="xYQK"/><html:errors property="xYQK"/><br/>
yWHM : <html:text property="yWHM"/><html:errors property="yWHM"/><br/>
yWLX : <html:text property="yWLX"/><html:errors property="yWLX"/><br/>
yWSD : <html:text property="yWSD"/><html:errors property="yWSD"/><br/>
yYSM : <html:text property="yYSM"/><html:errors property="yYSM"/><br/>
zFBZ : <html:text property="zFBZ"/><html:errors property="zFBZ"/><br/>
zFZT : <html:text property="zFZT"/><html:errors property="zFZT"/><br/>
<html:submit/><html:cancel/>
</html:form>
</body>
</html>
- javabean的妙用-eclipse结合hibernate插件、struts插件快速生成源代码(示例代码)
- javabean的妙用-eclipse结合hibernate插件、struts插件快速生成源代码
- 使用Eclipse的hibernate插件生成POJO
- 根据数据库表结构生成javabean的eclipse插件
- 根据数据库表结构生成javabean的eclipse插件
- java QB-RM(快速组件-冉闵) Eclipse 插件 快速生成代码 低碳jsp
- 在Eclipse中使用Hibernate插件 *******生成代码
- Eclipse安装Hibernate tools插件自动生成代码
- hibernate的eclipse插件
- eclipse的hibernate插件。。
- eclipse中的插件地址 struts hibernate
- Android eclipse 代码生成插件
- Eclipse插件,struts的应用
- 关于struts的eclipse插件
- eclipse的源代码搜索插件
- eclipse使用hibernate tools插件生成mysql数据表的pojo
- Android studio 使用Gsonformat插件快速生成javabean
- eclipse使用hibernate tools插件生成POJO
- 软件测试工具与流程
- 单一登录 Web 应用程序的企业级安全系统
- Eclipse 插件全攻略
- 凌晨十二点的鬼
- asp.net+JSON+AJAX(基于prototype1.4)做无刷新的2级DropDownList
- javabean的妙用-eclipse结合hibernate插件、struts插件快速生成源代码(示例代码)
- Addison-Wesley - The Pragmatic Programmer: From Journeyman to Master
- 开拓新客户:20个招术全搞定
- [JSP] JSP中字符转换问题
- kshen转Perl、PHP、ASP、JSP技术比较
- 最近学习的XML。
- 测试管理精华
- 用C++模板技术写的单链表
- Unicode 的编码和实现