package com.mossle.report.persistence.domain;
// Generated by Hibernate Tools
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.Table;
/**
* ReportDim .
*
* @author Lingo
*/
@Entity
@Table(name = "REPORT_DIM")
public class ReportDim implements java.io.Serializable {
private static final long serialVersionUID = 0L;
/** null. */
private Long id;
/** null. */
private ReportQuery reportQuery;
/** null. */
private String code;
/** null. */
private String name;
/** null. */
private String type;
/** null. */
private String description;
/** null. */
private Integer priority;
public ReportDim() {
}
public ReportDim(Long id) {
this.id = id;
}
public ReportDim(Long id, ReportQuery reportQuery, String code,
String name, String type, String description, Integer priority) {
this.id = id;
this.reportQuery = reportQuery;
this.code = code;
this.name = name;
this.type = type;
this.description = description;
this.priority = priority;
}
/** @return null. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
return this.id;
}
/**
* @param id
* null.
*/
public void setId(Long id) {
this.id = id;
}
/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "QUERY_ID")
public ReportQuery getReportQuery() {
return this.reportQuery;
}
/**
* @param reportQuery
* null.
*/
public void setReportQuery(ReportQuery reportQuery) {
this.reportQuery = reportQuery;
}
/** @return null. */
@Column(name = "CODE", length = 100)
public String getCode() {
return this.code;
}
/**
* @param code
* null.
*/
public void setCode(String code) {
this.code = code;
}
/** @return null. */
@Column(name = "NAME", length = 100)
public String getName() {
return this.name;
}
/**
* @param name
* null.
*/
public void setName(String name) {
this.name = name;
}
/** @return null. */
@Column(name = "TYPE", length = 50)
public String getType() {
return this.type;
}
/**
* @param type
* null.
*/
public void setType(String type) {
this.type = type;
}
/** @return null. */
@Column(name = "DESCRIPTION", length = 200)
public String getDescription() {
return this.description;
}
/**
* @param description
* null.
*/
public void setDescription(String description) {
this.description = description;
}
/** @return null. */
@Column(name = "PRIORITY")
public Integer getPriority() {
return this.priority;
}
/**
* @param priority
* null.
*/
public void setPriority(Integer priority) {
this.priority = priority;
}
}