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

📄 fum.java

📁 人力资源管理系统主要包括:人员管理、招聘管理、培训管理、奖惩管理和薪金管理五大管理模块。
💻 JAVA
字号:
//$Id: Fum.java,v 1.1.2.2 2003/11/14 02:47:34 oneovthafew Exp $package org.hibernate.test;import java.io.Serializable;import java.sql.SQLException;import java.util.Calendar;import java.util.Date;import java.util.HashMap;import java.util.HashSet;import java.util.Iterator;import java.util.Map;import java.util.Set;import net.sf.hibernate.CallbackException;import net.sf.hibernate.HibernateException;import net.sf.hibernate.Lifecycle;import net.sf.hibernate.Session;public class Fum implements Lifecycle {	private String fum;	private FumCompositeID id;	private Fum fo;	private Qux[] quxArray;	private Set friends;	private Calendar lastUpdated;	private String tString;	private short vid;	private short dupe;	private MapComponent mapComponent = new MapComponent();		public Fum() {}	public Fum(FumCompositeID id) throws SQLException, HibernateException {		this.id = id;		friends = new HashSet();		FumCompositeID fid = new FumCompositeID();		fid.setDate( new Date() );		fid.setShort( (short) ( id.short_ + 33 ) );		fid.setString( id.string_ + "dd" );		Fum f = new Fum();		f.id = fid;		f.fum="FRIEND";		friends.add(f);	}	public String getFum() {		return fum;	}	public void setFum(String fum) {		this.fum = fum;	}		public FumCompositeID getId() {		return id;	}	private void setId(FumCompositeID id) {		this.id = id;	}	public Fum getFo() {		return fo;	}	public void setFo(Fum fo) {		this.fo = fo;	}		public Qux[] getQuxArray() {		return quxArray;	}	public void setQuxArray(Qux[] quxArray) {		this.quxArray = quxArray;	}		public Set getFriends() {		return friends;	}		public void setFriends(Set friends) {		this.friends = friends;	}			public boolean onDelete(Session s) throws CallbackException {		if (friends==null) return false;		try {			Iterator iter = friends.iterator();			while ( iter.hasNext() ) {				s.delete( iter.next() );			}		}		catch (Exception e) {			throw new CallbackException(e);		}		return false;	}			public void onLoad(Session s, Serializable id) {	}			public boolean onSave(Session s) throws CallbackException {		if (friends==null) return false;		try {			Iterator iter = friends.iterator();			while ( iter.hasNext() ) {				s.save( iter.next() );			}		}		catch (Exception e) {			throw new CallbackException(e);		}		return false;	}			public boolean onUpdate(Session s) throws CallbackException {		return false;	}		public Calendar getLastUpdated() {		return lastUpdated;	}	public void setLastUpdated(Calendar calendar) {		lastUpdated = calendar;	}	public String getTString() {		return tString;	}	public void setTString(String string) {		tString = string;	}	public short getDupe() {		return dupe;	}	public void setDupe(short s) {		dupe = s;	}		public static final class MapComponent {		private Map fummap = new HashMap();		private Map stringmap = new HashMap();		private int count;		public Map getFummap() {			return fummap;		}		public void setFummap(Map mapcomponent) {			this.fummap = mapcomponent;		}		public int getCount() {			return count;		}		public void setCount(int count) {			this.count = count;		}		public Map getStringmap() {			return stringmap;		}		public void setStringmap(Map stringmap) {			this.stringmap = stringmap;		}	}	public MapComponent getMapComponent() {		return mapComponent;	}	public void setMapComponent(MapComponent mapComponent) {		this.mapComponent = mapComponent;	}}

⌨️ 快捷键说明

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