Home » Search

About Timestamp

1-10 of 55Refresh
Manual
123

Date and Time in JPQL and Criteria Queries

(a java.sql.Time instance). CURRENT_TIMESTAMP - is evaluated to the current timestamp, i.e. date and time (a java.sql.Timestamp instance). Extracting Date Parts JPA doesn't define standard methods ... current date & time expression: ExpressionTimestamp> ts = cb.currentTimestamp
JPA Doc
83

TemporalType.TIMESTAMP

Enum Constant javax.persistence.TemporalType TIMESTAMP Map as java.sql.Timestamp Since: JPA 1.0
Manual
38

JPA Persistable Types

.Time, java.sql.Timestamp. Date and time types are discussed in more detail in the next paragraph. Date ... only (e.g. 23:59:59). java.sql.Timestamp - represents date and time (e.g. 2010-12-31 23:59:59). The java ... time3; // Date and Time: java.sql.Timestamp dateAndTime1; @Temporal(TemporalType
Forum
30

java.sql.Timestamp.getTime() not working

Hi, I need to work with Timestamp diff in two entity fields, but this queries SELECT count(p ... (TemporalType.TIMESTAMP) public Timestamp loginAt; @Temporal(TemporalType.TIMESTAMP) public Timestamp registeredAt = AppCore.getTime(); ... } Is there some other way to compare two Timestamps
Manual
29

Literals in JPQL and Criteria Queries

'} Timestamp - {ts 'yyyy-mm-dd hh:mm:ss'} - for example: {ts '2011-01-03 13:59:59'} Enum Literals JPA 2 ... Timestamp> now = cb.literal(new java.sql.Timestamp()); // Enum literal: Expression
Forum
29

java.sql.Timestamp with milliseconds

/Timestamp.html) @Id @Column(name = "STMP") @Temporal(TemporalType.TIMESTAMP) private Timestamp timestamp ... .Timestamp, but I would like to use a single Date/Time field (ie, not milliseconds since the Epoch ... ();     }         @Entity     public static class MyEntity {         @Id Timestamp time = new Timestamp(System.currentTimeMillis());     } } klonq
Forum
29

auto generate timestamp

Hi all, How can I create auto timestamping column? I want the database to generate the timestamp. I ... /811845/setting-a-jpa-timestamp-column-to-be-generated-by-the-database - Pawel   Yes, currently ObjectDB supports only numeric values in version fields. However, you can hold the timestamp in
Forum
27

Possible issue with timestamps

;             this.creationDate = creationDate;         }                     @Temporal(TemporalType.TIMESTAMP
Result
24

ObjectDB Object Database Features

, java.sql.Date, java.sql.Time and java.sql.Timestamp. Math types: java.lang.BigInteger and java ... and Double). java.lang.String Dates: java.util.Date, java.sql.Date, java.sql.Time and java.sql.Timestamp
Manual
17

FROM clause (JPQL / Criteria API)

_TIMESTAMP,DELETE, DESC, DISTINCT, ELSE, EMPTY, END, ENTRY, ESCAPE, EXISTS, FALSE, FETCH,FROM, GROUP, HAVING