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.dhenton9000.birt.persistence.entities.Orders.java

/**
 * @return the shippedDate//from ww  w. j av  a2 s .co m
 */
@Column(name = "SHIPPEDDATE")
@Temporal(TemporalType.TIMESTAMP)
@ApiModelProperty(example = "2/22/2013", required = true)
@Basic(optional = false)
public Date getShippedDate() {
    return shippedDate;
}

From source file:com.infinities.skyport.entity.TaskEvent.java

@Temporal(TemporalType.TIMESTAMP)
@Column(name = "REGISTERDATE", length = 30)
public Date getRegisterdate() {
    return this.registerdate;
}

From source file:io.github.davejoyce.dao.composite.model.AppTweet.java

@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATED_DT", nullable = false)
public Date getCreatedDate() {
    return createdDate;
}

From source file:com.syncnapsis.data.model.Player.java

/**
 * Datum, zu dem die Benutzerrolle fr diesen Benutzer/Spieler abluft
 * Wenn die Benutzerrolle abgelaufen ist, wird der Spieler wieder zum
 * 'NORMAL_USER'/*from   www .  j  a v a2 s  . co  m*/
 * 
 * @return roleExpireDate
 */
@Temporal(TemporalType.TIMESTAMP)
@Column(nullable = true)
public Date getRoleExpireDate() {
    return roleExpireDate;
}

From source file:com.sccl.attech.modules.message.entity.AlarmRecords.java

@Temporal(TemporalType.TIMESTAMP)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelField(title = "", align = 2, sort = 40)
public Date getLocation_date() {
    return location_date;
}

From source file:be.fedict.eid.pkira.blm.model.reporting.ReportEntryListQuery.java

private void setQueryParameters(Query query) {
    Calendar calendar = new GregorianCalendar();
    calendar.setTime(reportDate);//from  w  w  w  .  j  a  v a2 s. c om
    calendar.set(Calendar.HOUR_OF_DAY, 0);
    calendar.set(Calendar.MINUTE, 0);
    calendar.set(Calendar.SECOND, 0);
    calendar.set(Calendar.MILLISECOND, 0);
    Date start = calendar.getTime();

    calendar.add(Calendar.DATE, 1);
    Date end = calendar.getTime();

    query.setParameter("start", start, TemporalType.TIMESTAMP);
    query.setParameter("end", end, TemporalType.TIMESTAMP);

    if (contractTypeFilter != null)
        query.setParameter("contractType", contractTypeFilter);
    if (StringUtils.isNotBlank(certificateDomainNameFilter))
        query.setParameter("certificateDomainName", "%" + certificateDomainNameFilter.toLowerCase() + "%");
    if (StringUtils.isNotBlank(subjectFilter))
        query.setParameter("subject", "%" + subjectFilter.toLowerCase() + "%");
    if (successFilter != null)
        query.setParameter("success", successFilter);
}

From source file:com.nec.harvest.model.AbstractEntity.java

@Column(name = "TimeU")
@Temporal(TemporalType.TIMESTAMP)
public Calendar getTimeU() {
    return timeU;
}

From source file:com.testing26thjuly_.db123testing.AllTypes.java

@Temporal(TemporalType.TIMESTAMP)
@Column(name = "`DATETIME COL`", nullable = false)
public Date getDatetimeCol() {
    return this.datetimeCol;
}

From source file:com.syncnapsis.data.model.News.java

/**
 * Zu welchem Zeitpunkt soll die Nachricht erscheinen
 * //from w  ww  .ja  v a 2 s  .  c o  m
 * @return date
 */
@Temporal(TemporalType.TIMESTAMP)
@Column(nullable = false)
public Date getDate() {
    return date;
}

From source file:com.syncnapsis.data.model.Player.java

/**
 * Datum, zu dem der Kontostatus abluft/*from  w  ww  . j  a  v a2 s. c  om*/
 * Wenn der Kontostatus abgelaufen ist, wird der Kontostatus wieder auf
 * 'active' gesetzt.
 * 
 * @return accountStatusExpireDate
 */
@Temporal(TemporalType.TIMESTAMP)
@Column(nullable = true)
public Date getAccountStatusExpireDate() {
    return accountStatusExpireDate;
}