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

📄 foocomponent.java

📁 人力资源管理系统主要包括:人员管理、招聘管理、培训管理、奖惩管理和薪金管理五大管理模块。
💻 JAVA
字号:
//$Id: FooComponent.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;import java.io.Serializable;import java.util.Date;public class FooComponent implements Serializable {		int count;	String name;	Date[] importantDates;	FooComponent subcomponent;	Fee fee = new Fee();	GlarchProxy glarch;	private FooProxy parent;	private Baz baz;		public boolean equals(Object that) {		FooComponent fc = (FooComponent) that;		return count==fc.count;	}		public int hashCode() {		return count;	}		public String toString() {		String result = "FooComponent: " + name + "=" + count;		result+="; dates=[";		if ( importantDates!=null) {			for ( int i=0; i<importantDates.length; i++ ) {				result+=(i==0 ?"":", ") + importantDates[i];			}		}		result+="]";		if ( subcomponent!=null ) {			result+= " (" + subcomponent + ")";		}		return result;	}		public FooComponent() {}		FooComponent(String name, int count, Date[] dates, FooComponent subcomponent) {		this.name = name;		this.count = count;		this.importantDates = dates;		this.subcomponent = subcomponent;	}		FooComponent(String name, int count, Date[] dates, FooComponent subcomponent, Fee fee) {		this.name = name;		this.count = count;		this.importantDates = dates;		this.subcomponent = subcomponent;		this.fee = fee;	}		public int getCount() {		return count;	}	public void setCount(int count) {		this.count = count;	}		public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}		public Date[] getImportantDates() {		return importantDates;	}	public void setImportantDates(Date[] importantDates) {		this.importantDates = importantDates;	}		public FooComponent getSubcomponent() {		return subcomponent;	}	public void setSubcomponent(FooComponent subcomponent) {		this.subcomponent = subcomponent;	}		private String getNull() {		return null;	}	private void setNull(String str) throws Exception {		if (str!=null) throw new Exception("null component property");	}	public Fee getFee() {		return fee;	}		public void setFee(Fee fee) {		this.fee = fee;	}		public GlarchProxy getGlarch() {		return glarch;	}		public void setGlarch(GlarchProxy glarch) {		this.glarch = glarch;	}		public FooProxy getParent() {		return parent;	}		public void setParent(FooProxy parent) {		//if (parent==null) throw new RuntimeException("null parent set");		this.parent = parent;	}		public Baz getBaz() {		return baz;	}		public void setBaz(Baz baz) {		this.baz = baz;	}	}

⌨️ 快捷键说明

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