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

📄 messagetype.java

📁 协同办公
💻 JAVA
字号:
package com.sinosoft.message.po;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Messagetype entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MESSAGETYPE", schema = "MESSAGE")
public class Messagetype implements java.io.Serializable {

	// Fields

	private String id;
	private Applicationinfo applicationinfo;
	private String name;
	private Set<Messagecontent> messagecontents = new HashSet<Messagecontent>(0);

	// Constructors

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

	/** minimal constructor */
	public Messagetype(String id) {
		this.id = id;
	}

	/** full constructor */
	public Messagetype(String id, Applicationinfo applicationinfo, String name,
			Set<Messagecontent> messagecontents) {
		this.id = id;
		this.applicationinfo = applicationinfo;
		this.name = name;
		this.messagecontents = messagecontents;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "APP_ID")
	public Applicationinfo getApplicationinfo() {
		return this.applicationinfo;
	}

	public void setApplicationinfo(Applicationinfo applicationinfo) {
		this.applicationinfo = applicationinfo;
	}

	@Column(name = "NAME", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "messagetype")
	public Set<Messagecontent> getMessagecontents() {
		return this.messagecontents;
	}

	public void setMessagecontents(Set<Messagecontent> messagecontents) {
		this.messagecontents = messagecontents;
	}

}

⌨️ 快捷键说明

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