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:ua.its.slot7.caccounting.model.userartoken.UserARToken.java

@Column(nullable = false)
@Temporal(TemporalType.TIMESTAMP)
public Date getPeriodBegin() {
    return periodBegin;
}

From source file:ua.its.slot7.caccounting.model.userartoken.UserARToken.java

@Column(nullable = false)
@Temporal(TemporalType.TIMESTAMP)
public Date getPeriodEnd() {
    return periodEnd;
}