Commit 26dbb60d authored by kpandey's avatar kpandey

Shifted to Proteus-Framework jar

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200589 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 86115436
package ibase.dashboard.common.hibernate.bean;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.search.annotations.Analyze;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;
import org.json.JSONException;
import org.json.JSONObject;
@Indexed
@Entity
@Table(name = "OBJ_USER_PREF")
@XmlRootElement(name = "objUserPref")
public class ObjUserPref implements java.io.Serializable
{
private static final long serialVersionUID = 1L;
@Id
@Column(name="USER_ID")
@Field(store = Store.YES, analyze = Analyze.NO)
private String userId;
@Id
@Column(name="OBJ_NAME")
private String objName;
@Column(name="PREF_NAME")
private String prefName;
@Lob
@Column(name="PREF_VALUE")
private String prefValue;
@Column(name="PREF_VAL_TYPE")
private String prefValueType;
@Column(name="ADD_DATE")
private Date addDate;
@Column(name="ADD_USER")
private String addUser;
@Column(name="ADD_TERM")
private String addTerm;
@Column(name="CHG_DATE")
private Date chgDate;
@Column(name="CHG_USER")
private String chgUser;
@Column(name="CHG_TERM")
private String chgTerm;
public ObjUserPref() {
}
public ObjUserPref(String userId, String objName, String prefName, String prefValue, String prefValueType,
Date addDate, String addUser, String addTerm, Date chgDate, String chgUser, String chgTerm) {
super();
this.userId = userId;
this.objName = objName;
this.prefName = prefName;
this.prefValue = prefValue;
this.prefValueType = prefValueType;
this.addDate = addDate;
this.addUser = addUser;
this.addTerm = addTerm;
this.chgDate = chgDate;
this.chgUser = chgUser;
this.chgTerm = chgTerm;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getObjName() {
return objName;
}
public void setObjName(String objName) {
this.objName = objName;
}
public String getPrefName() {
return prefName;
}
public void setPrefName(String prefName) {
this.prefName = prefName;
}
public String getPrefValue() {
return prefValue;
}
public void setPrefValue(String prefValue) {
this.prefValue = prefValue;
}
public String getPrefValueType() {
return prefValueType;
}
public void setPrefValueType(String prefValueType) {
this.prefValueType = prefValueType;
}
public Date getAddDate() {
return addDate;
}
public void setAddDate(Date addDate) {
this.addDate = addDate;
}
public String getAddUser() {
return addUser;
}
public void setAddUser(String addUser) {
this.addUser = addUser;
}
public String getAddTerm() {
return addTerm;
}
public void setAddTerm(String addTerm) {
this.addTerm = addTerm;
}
public Date getChgDate() {
return chgDate;
}
public void setChgDate(Date chgDate) {
this.chgDate = chgDate;
}
public String getChgUser() {
return chgUser;
}
public void setChgUser(String chgUser) {
this.chgUser = chgUser;
}
public String getChgTerm() {
return chgTerm;
}
public void setChgTerm(String chgTerm) {
this.chgTerm = chgTerm;
}
@Override
public String toString(){
return "\n ObjUserPref.toString >> [" + new JSONObject(this).toString() + "]";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment