ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
68

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
67

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) klonq ... ();     }         @Entity     public static class MyEntity {         @Id Timestamp time = new
66

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 pawel Pawel Hryniszak Yes, currently ObjectDB supports only numeric values in version fields. However, you can hold
61

Possible issue with timestamps

(TemporalType.TIMESTAMP)         public Date getCreationDate() {             return creationDate
59

Number of current connections

Is there any way to find out the number of current connections to the DB server? natmaclin Natalia Levine Currently not. You may subscribe to this feature request and update it according to your needs. support Support
59

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
37

TemporalType.TIMESTAMP

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

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: Expression<javax.sql.Timestamp> ts = cb.currentTimestamp ... expressions - in navigation to persistent date and time fields. as results of predefined JPQL current
7

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. 2019-12-31 23:59:59). The java ... time3; // Date and Time: java.sql.Timestamp dateAndTime1; @Temporal(TemporalType
3

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support