ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.TemporalType.TIMESTAMP

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.TemporalType TIMESTAMP Map as java.sql. Timestamp Since: Jakarta Persistence (JPA) 1.0

java.sql.Timestamp.getTime() not working

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

auto generate timestamp

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

java.sql.Timestamp with milliseconds

/ Timestamp .html) @Id @Column(name = "STMP") @Temporal(TemporalType. TIMESTAMP ) private Timestamp timestamp ; However with ObjectDB the milliseconds are not being stored, as shown this is an ID field ... . Timestamp , but I would like to use a single Date/Time field (ie, not milliseconds since the Epoch

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

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

Date and Time in JPQL and Criteria Queries

to the current time (a java.sql.Time instance). CURRENT _ TIMESTAMP - is evaluated to the current timestamp , i.e ... JPQL current date and time functions. Current Date and Time JPA defines special JPQL expressions that are evaluated to the date and time on the database server when the query is executed: CURRENT _DATE

JPA Persistable Types

.sql.Time , java.sql. Timestamp . Date and time types are discussed in more detail in ... time only (e.g. 23:59:59 ). java.sql. Timestamp - represents date and time (e.g. 2019-12-31 23:59:59 ... ;       // Date and Time:     java.sql. Timestamp

ObjectDB current status of the BIRT plugin

ObjectDB current status of the BIRT plugin

_UserException: Attempt to open a database file '...' that is currently in use

_UserException: Attempt to open a database file '...' that is currently in use

Possible issue with timestamps

Possible issue with timestamps

Literals in JPQL and Criteria Queries

literals (e.g. 077 , 077L ), a feature that is not currently supported by all JPA implementations. String ... '} - for example: {t '23:59:59'} Timestamp - {ts 'yyyy-mm-dd hh:mm:ss'} - for example: {ts '2020-01-03 13:59:59 ... ()); Expression now = cb. literal (new java.sql. Timestamp ()); // Enum literal: Expression red = cb. literal (Color

FROM clause (JPQL / Criteria API)

, CHAR_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

ObjectDB Object Database Features

.String Date types : java.util.Date, java.sql.Date, java.sql.Time and java.sql. Timestamp . Math types ... .util.Date, java.sql.Date, java.sql.Time and java.sql. Timestamp . Math: java.lang.BigInteger and java

Index Definition

, java.sql. Timestamp . Any enum type. Reference to an entity object. Arrays and collections that contain

JPA Primary Key

.lang.String. java.util.Date , java.sql.Date , java.sql.Time , java.sql. Timestamp . Any enum type

jakarta.persistence.criteria.CriteriaBuilder

Expression currentTimestamp () Create expression to return current timestamp . Returns: expression for current timestamp . Since: Jakarta Persistence (JPA) 1.0 Order desc ( Expression expression ) Create ... expression to return current local datetime. Returns: expression for current timestamp . Since: Jakarta

Database Explorer

it from the command line as follows: $ java -jar explorer.jar If explorer.jar is not in the current ...  menu command to close a currently open database connection. Viewing Database Content Viewer ... , a bookmark in the [Database] tabbed window or an object in a currently open Table or Tree window

jakarta.persistence.Version

field or property holds a version number or timestamp identifying the revision of the entity data ... or timestamp fails during an attempt to update the entity, that is, if the version or timestamp held ... : int , Integer , short , Short , long , Long , java.sql. Timestamp , Instant , LocalDateTime

Retrieving JPA Entity Objects

FetchType . LAZY in either @OneToOne or @ManyToOne annotations ( currently ObjectDB does not distinguish ... annotations ( currently ObjectDB does not distinguish between the two) enables cascading retrieval ... fields of an entity object can be accessed freely, regardless of the current fetch policy, as long as

Locking in JPA

(using another EntityManager ) since it was retrieved by the current updater. Optimistic locking ... another EntityManager instance) currently holds a PESSIMISTIC_WRITE lock on that database object. A PESSIMISTIC_WRITE lock request fails if another user currently holds either a PESSIMISTIC_WRITE lock or

jakarta.persistence.Column

of decimal digits to use for storing fractional seconds in a SQL time or timestamp column. Applies only to columns of time or timestamp type. The default value -1 indicates that fractional seconds should not ... driver should be stored in a timestamp column. Default: -1 Since: Jakarta Persistence (JPA) 3.2

JPA Class Enhancer

.objectdb.Enhancer If objectdb.jar is not in the current directory a path to it has to be specified ... is inferior to the other techniques that are described above. First, currently it only works on Sun JDK

ObjectDB Website - Terms and Conditions of Use

that any of the materials on its web site are accurate, complete, or current . ObjectDB Software may make ... this web site you are agreeing to be bound by the then current version of these Terms and Conditions

jakarta.persistence.EntityManager

that is currently associated with a persistence context. A detached entity is an instance with a persistent ... to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating ... if invoked on an entity manager which has not been joined to the current transaction and a lock mode

jakarta.persistence.Basic

, or Year Date or Calendar , java.sql.Date , java.sql.Time , or java.sql. Timestamp , byte[] or Byte ... getName() { return name; } The use of Date , Calendar , java.sql.Date , java.sql.Time , java.sql. Timestamp

jakarta.persistence.TemporalType

TIMESTAMP Map as java.sql. Timestamp Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static Methods

jakarta.persistence.criteria.CriteriaBuilder.currentTimestamp()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentTimestamp() Create expression to return current timestamp . Returns: expression for current timestamp . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Column.secondPrecision

) The number of decimal digits to use for storing fractional seconds in a SQL time or timestamp column. Applies only to columns of time or timestamp type. The default value -1 indicates that fractional ... the database and JDBC driver should be stored in a timestamp column. Default: -1 Since: Jakarta Persistence (JPA) 3.2

JPA Lifecycle Events

that should be applied by default to all the entity classes. Currently , default listeners can only be specified in

Database Transaction Replayer

is not in the current directory a path to it has to be specified. The tool's main class is com

Storing JPA Entity Objects

is thrown. The exception is thrown either by persist (if that existing entity object is currently

What are the system requirements for using ObjectDB?

ObjectDB requires Java 8 or later. As a pure Java application, ObjectDB should be able to run on any platform that supports the Java Standard Edition. Either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) can be used. A version of ObjectDB for .NET is currently under development.

Database Doctor

is not in the current directory a path to it has to be specified. The tool main class is com.objectdb

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java, Kotlin, Groovy and Scala. It can also be used with other languages, such as Python, JavaScript, Ruby and PHP, but currently only with their JVM implementations (e.g. Jython for Python, GraalVM for JavaScript

Entity Management Settings

, even if it is not specified explicitly at the command line. This is currently an experimental feature

Online Backup

that reflects the current date and time (e.g.  201912312359 ) is created under the backup root

Paths and Types in JPQL and Criteria API

reference. In JPQL, the current FROM variable (or FROM tuple when there are multiple variables

GROUP BY and HAVING clauses

. Only identification variables and path expressions are currently supported in the GROUP BY clause by all the JPA

General Settings and Logging

of the subsystem loggers are currently undocumented and can change at any time without notice

Database Server

: $ java -cp objectdb.jar com.objectdb.Server If objectdb.jar is not in the current directory a path

jakarta.persistence.criteria.CriteriaBuilder.localDateTime()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression localDateTime() Create expression to return current local datetime. Returns: expression for current timestamp . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManagerFactory

, then the EntityManager is associated with this current transaction. If the given function returns ... : synchronizationType - how and when the entity manager should be synchronized with the current JTA ... - how and when the entity manager should be synchronized with the current JTA transaction map - properties

jakarta.persistence.EntityTransaction

(JPA) 1.0 void commit () Commit the current resource transaction, writing any unflushed changes ... fails. Since: Jakarta Persistence (JPA) 1.0 boolean getRollbackOnly () Determine whether the current ... back the current resource transaction. Throws: IllegalStateException - if isActive is false. PersistenceException

jakarta.persistence.SynchronizationType

with the current transaction or whether the persistence context must be explicitly joined to the current ... Enum Constants SYNCHRONIZED Persistence context is automatically synchronized with the current ... joined to the current transaction Since: Jakarta Persistence (JPA) 1.0 Synthetic Public Static Methods

jakarta.persistence.EntityExistsException

. The current transaction, if one is active, will be marked for rollback. If the entity already exists ... the EntityExistsException or another PersistenceException may be thrown at flush or commit time. The current transaction

JPA Web App Tutorial - Maven Project

: mvn package jetty:run The current directory should be  guestbook-web (containing the  pom

Java EE JPA Tutorial - Maven Project

the command line: mvn package The current directory should be  guestbook-jee6

Getting Started with JPA - Maven Project

The current directory should be points-console (containing the pom.xml file). No need to download

Spring MVC JPA Tutorial - Maven Project

jetty:run The current directory should be  guestbook-spring (containing the  pom.xml file