About CURRENT_TIMESTAMP

1-10 of 200Refresh
JPA Doc
45

TemporalType.TIMESTAMP

Enum Constant javax.persistence.TemporalType TIMESTAMP Map as java.sql.Timestamp Since: JPA 1.0
JDO Doc
42

current()

Method javax.jdo.datastore.Sequence Object current() Returns the current sequence value object if it is available. It is intended to return a sequence value object previously used. If the current sequence value is not available, throw JDODataStoreException. Returns: the current value Since: JDO 2.0
Manual
39

Date and Time in JPQL and Criteria Queries

(a java.sql.Time instance). CURRENT_TIMESTAMP - is evaluated to the current timestamp, i.e. date ... current date & time expression: ExpressionTimestamp> ts = cb.currentTimestamp ... expressions - in navigation to persistent date and time fields. as results of predefined JPQL current
Manual
24

Literals in JPQL and Criteria Queries

, 077L), a feature that is not currently supported by all JPA implementations. String Literals JPQL ... '} 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
Manual
19

FROM clause (JPQL / Criteria API)

_LENGTH, CHARACTER_LENGTH, CLASS, COALESCE, CONCAT, COUNT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP,DELETE, DESC, DISTINCT, ELSE, EMPTY, END, ENTRY, ESCAPE, EXISTS, FALSE, FETCH,FROM, GROUP, HAVING
Forum
17

auto generate timestamp

/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 ... Hi all, How can I create auto timestamping column? I want the database to generate the timestamp. I
Forum
15

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
Forum
15

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
14

Possible issue with timestamps

;             this.creationDate = creationDate;         }                     @Temporal(TemporalType.TIMESTAMP
Forum
14

Is there an API to get the current version of ObjectDB that's being used?

Is there an API to get the current version of ObjectDB that's being used? This would be very handy to have, because it is somewhat difficult to know what version of the ObjectDB you are currently using since the objectdb.jar filename remains the same for all versions (which is not a bad thing by