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

📄 functions.java

📁 利用STRUTS2+SPRING+HIBERNATE/IBATIS建立的基本开发框架
💻 JAVA
字号:
package com.sunwah.baseapp.system.model;

import java.util.Date;
import java.util.Set;

import com.sunwah.baseapp.system.dao.FunctionDao;
import com.sunwah.baseapp.system.dao.UserDao;

/**
 * Functions entity.
 * 
 * @author MyEclipse Persistence Tools
 */
public class Functions extends AbstractFunctions implements
		java.io.Serializable {

	// Constructors

	/** default constructor */
	public Functions() {
	}

	/** minimal constructor */
	public Functions(Long parentFuncId, String functionCode,
			String functionName, String functionLevel, Long ordering,
			String functionType, String state, Long createUserId,
			Date createDate, Long modifyUserId, Date modifyDate) {
		super(parentFuncId, functionCode, functionName, functionLevel,
				ordering, functionType, state, createUserId, createDate,
				modifyUserId, modifyDate);
	}

	/** full constructor */
	public Functions(Long parentFuncId, String functionCode,
			String functionName, String assemblyName, String functionLevel,
			Long ordering, String functionType, String state,
			Long createUserId, Date createDate, Long modifyUserId,
			Date modifyDate, String remark, Set roleFunctions) {
		super(parentFuncId, functionCode, functionName, assemblyName,
				functionLevel, ordering, functionType, state, createUserId,
				createDate, modifyUserId, modifyDate, remark, roleFunctions);
	}

	private String createUserName;

	private String modifyUserName;

	private String parentFuncName;

	public void setParentFuncName(FunctionDao functionDao) {
		if (this.getParentFuncId() != null) {
			Functions function = functionDao.get(getParentFuncId());
			if (function != null)
				this.parentFuncName = function.getFunctionName();
		}
	}

	public void setCreateUserName(UserDao userDao) {
		Users user = userDao.get(getCreateUserId());
		if (user != null)
			this.createUserName = user.getUserName();
	}

	public void setModiryUserName(UserDao userDao) {
		Users user = userDao.get(getCreateUserId());
		if (user != null)
			this.modifyUserName = user.getUserName();
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public String getModifyUserName() {
		return modifyUserName;
	}

	public String getParentFuncName() {
		return parentFuncName;
	}
}

⌨️ 快捷键说明

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