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

📄 operatelog.java

📁 基于struts+hibernate的电子商务网站。可运行。数据库mysql
💻 JAVA
字号:
package tarena.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Operatelog entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Operatelog implements java.io.Serializable {

	// Fields

	private Integer id;
	private Orders order;
	private User user;
	private Date otime;
	private String operation;
	private String remark;

	// Constructors

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

	/** minimal constructor */
	public Operatelog(User user, Date otime, String operation) {
		this.user = user;
		this.otime = otime;
		this.operation = operation;
	}

	/** full constructor */
	public Operatelog(User user, Date otime, String operation, String remark) {
		this.user = user;
		this.otime = otime;
		this.operation = operation;
		this.remark = remark;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	
	public Orders getOrder() {
		return order;
	}

	public void setOrder(Orders order) {
		this.order = order;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getOtime() {
		return this.otime;
	}
	
	public String getFormatOtime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-DD hh:mm:ss");
		return sdf.format(this.otime);
	}

	public void setOtime(Date otime) {
		this.otime = otime;
	}

	public String getOperation() {
		return this.operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	
}

⌨️ 快捷键说明

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