?? functionalmodel.java
字號(hào):
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.OneToMany;
import javax.persistence.Table;
/**
* Functionalmodel entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "FUNCTIONALMODEL", schema = "MESSAGE")
public class Functionalmodel implements java.io.Serializable {
// Fields
private String id;
private String classname;
private String status;
private String methodname;
private Set<Userdefinedstrategy> userdefinedstrategies = new HashSet<Userdefinedstrategy>(
0);
private Set<Presystemstrategy> presystemstrategies = new HashSet<Presystemstrategy>(
0);
// Constructors
/** default constructor */
public Functionalmodel() {
}
/** minimal constructor */
public Functionalmodel(String id) {
this.id = id;
}
/** full constructor */
public Functionalmodel(String id, String classname, String status,
String methodname, Set<Userdefinedstrategy> userdefinedstrategies,
Set<Presystemstrategy> presystemstrategies) {
this.id = id;
this.classname = classname;
this.status = status;
this.methodname = methodname;
this.userdefinedstrategies = userdefinedstrategies;
this.presystemstrategies = presystemstrategies;
}
// 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;
}
@Column(name = "CLASSNAME", length = 50)
public String getClassname() {
return this.classname;
}
public void setClassname(String classname) {
this.classname = classname;
}
@Column(name = "STATUS", length = 1)
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
@Column(name = "METHODNAME", length = 100)
public String getMethodname() {
return this.methodname;
}
public void setMethodname(String methodname) {
this.methodname = methodname;
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "functionalmodel")
public Set<Userdefinedstrategy> getUserdefinedstrategies() {
return this.userdefinedstrategies;
}
public void setUserdefinedstrategies(
Set<Userdefinedstrategy> userdefinedstrategies) {
this.userdefinedstrategies = userdefinedstrategies;
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "functionalmodel")
public Set<Presystemstrategy> getPresystemstrategies() {
return this.presystemstrategies;
}
public void setPresystemstrategies(
Set<Presystemstrategy> presystemstrategies) {
this.presystemstrategies = presystemstrategies;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -