/**
* -----------------------------------------------------------------------------------
* (c) 2010-2014 OpenInfobutton Project, Biomedical Informatics, University of Utah
* Contact: {@code <andrew.iskander@utah.edu>}
* Biomedical Informatics
* 421 Wakara Way, Ste 140
* Salt Lake City, UT 84108-3514
* Day Phone: 1-801-581-4080
* -----------------------------------------------------------------------------------
*
* @author Andrew Iskander {@code <andrew.iskander@utah.edu>}
* @version Jul 15, 2014
*/
package edu.utah.further.subsetdb.domain;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import edu.utah.further.core.api.data.PersistentEntity;
/**
* The Class Logs.
*/
@Entity
@Table( name = "logs" )
public class Logs
implements PersistentEntity<Long>
{
// ========================= CONSTANTS =================================
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
// ========================= FIELDS ====================================
/**
* The unique identifier of this entity.
*/
@Id
// @Final
@GeneratedValue( strategy = GenerationType.AUTO )
public Long logsId;
/** The request. */
@Column( name = "request", nullable = true, columnDefinition = "MEDIUMTEXT" )
public String request;
/** The timestamp. */
@Column( name = "timestamp", nullable = true )
public Timestamp timestamp;
/** The client ip. */
@Column( name = "clientIP", nullable = true )
public String clientIP;
/** The org id. */
@Column( name = "orgID", nullable = true )
public String orgID;
// ========================= IMPLEMENTATION: PersistentEntity ==========
/*
* (non-Javadoc)
* @see edu.utah.further.core.api.discrete.HasIdentifier#getId()
*/
@Override
public Long getId()
{
// TODO Auto-generated method stub
return logsId;
}
/**
* Sets the logs id.
*
* @param logsId the new logs id
*/
public void setLogsId( Long logsId )
{
this.logsId = logsId;
}
/**
* Gets the request.
*
* @return the request
*/
public String getRequest()
{
return request;
}
/**
* Sets the request.
*
* @param request the new request
*/
public void setRequest( String request )
{
this.request = request;
}
/**
* Gets the timestamp.
*
* @return the timestamp
*/
public Timestamp getTimestamp()
{
return timestamp;
}
/**
* Sets the timestamp.
*
* @param timestamp2 the new timestamp
*/
public void setTimestamp( Timestamp timestamp2 )
{
this.timestamp = timestamp2;
}
/**
* Gets the client ip.
*
* @return the client ip
*/
public String getClientIP()
{
return clientIP;
}
/**
* Sets the client ip.
*
* @param clientIP the new client ip
*/
public void setClientIP( String clientIP )
{
this.clientIP = clientIP;
}
/**
* Gets the org id.
*
* @return the org id
*/
public String getOrgID()
{
return orgID;
}
/**
* Sets the org id.
*
* @param orgID the new org id
*/
public void setOrgID( String orgID )
{
this.orgID = orgID;
}
}