Example usage for javax.persistence TemporalType TIMESTAMP

List of usage examples for javax.persistence TemporalType TIMESTAMP

Introduction

In this page you can find the example usage for javax.persistence TemporalType TIMESTAMP.

Prototype

TemporalType TIMESTAMP

To view the source code for javax.persistence TemporalType TIMESTAMP.

Click Source Link

Document

Map as java.sql.Timestamp

Usage

From source file:com.impetus.ankush.common.domain.User.java

/**
 * Gets the last login.
 *
 * @return the last login
 */
@JsonIgnore
@Temporal(TemporalType.TIMESTAMP)
public Date getLastLogin() {
    return lastLogin;
}

From source file:org.opennms.netmgt.model.OnmsAlarm.java

/**
 * <p>getFirstEventTime</p>//from www.  j ava 2s  . c  o m
 *
 * @return a {@link java.util.Date} object.
 */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "firstEventTime")
public Date getFirstEventTime() {
    return this.m_firstEventTime;
}

From source file:org.opennms.netmgt.model.OnmsEvent.java

/**
 * <p>getEventTime</p>/*w w  w .ja va2s .co m*/
 *
 * @return a {@link java.util.Date} object.
 */
@XmlElement(name = "time")
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "eventTime", nullable = false)
public Date getEventTime() {
    return m_eventTime;
}

From source file:gov.nih.nci.caarray.domain.project.Project.java

/**
 * Gets the last updated date./*  www . ja v  a2s .c o  m*/
 *
 * @return the last date this experiment was updated
 */
@Temporal(TemporalType.TIMESTAMP)
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public Date getLastUpdated() {
    return this.lastUpdated;
}

From source file:org.opennms.netmgt.model.OnmsNode.java

/**
 * Date and time of last Capsd scan.//from  w  w w .java2 s.  c o m
 *
 * @return a {@link java.util.Date} object.
 */
@XmlElement(name = "lastCapsdPoll")
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "lastCapsdPoll")
public Date getLastCapsdPoll() {
    return m_lastCapsdPoll;
}

From source file:org.opennms.netmgt.model.OnmsAlarm.java

/**
 * <p>getSuppressedUntil</p>
 *
 * @return a {@link java.util.Date} object.
 *//*from   w  ww  .j a  v  a2  s  . c  om*/
@Temporal(TemporalType.TIMESTAMP)
@XmlElement(name = "suppressedUntil")
@Column(name = "suppressedUntil")
public Date getSuppressedUntil() {
    return this.m_suppressedUntil;
}

From source file:org.opennms.netmgt.model.OnmsAlarm.java

/**
 * <p>getSuppressedTime</p>/*from   w  ww .  j a v a  2  s  .  c  om*/
 *
 * @return a {@link java.util.Date} object.
 */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "suppressedTime")
@XmlElement(name = "suppressedTime")
public Date getSuppressedTime() {
    return this.m_suppressedTime;
}

From source file:ru.apertum.qsystem.common.model.QCustomer.java

@Column(name = "stand_time")
@Temporal(TemporalType.TIMESTAMP)
public Date getStandTime() {
    return standTime;
}

From source file:org.opennms.netmgt.model.OnmsEvent.java

/**
 * <p>getEventCreateTime</p>
 *
 * @return a {@link java.util.Date} object.
 */// w  ww.  j a  v  a  2  s.  c  om
@XmlElement(name = "createTime")
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "eventCreateTime", nullable = false)
public Date getEventCreateTime() {
    return m_eventCreateTime;
}

From source file:ru.apertum.qsystem.common.model.QCustomer.java

@Column(name = "start_time")
@Temporal(TemporalType.TIMESTAMP)
public Date getStartTime() {
    return startTime;
}