ObjectDB Database Search

1-50 of 200 results

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

EnumConstRef jakarta.persistence.TemporalType.TIMESTAMP

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

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

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

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

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

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

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

Since: JPA 2.0 Expression currentTimestamp () Create expression to return current timestamp . Return: expression for current timestamp Since: JPA 2.0 Order desc ( Expression  expression) Create ... for current timestamp Since: JPA 2.0 Expression localTime () Create expression to return current local

AnnotationRef jakarta.persistence.Version

timestamp identifying the revision of the entity data held by an entity class instance. An plain occurs when verification of the version or timestamp fails during an attempt to update the entity, that is, if the version or timestamp held in the database changes between reading the state of an entity

CriteriaBuilder.currentTimestamp() - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentTimestamp () Create expression to return current timestamp . Return: expression for current timestamp Since: JPA 2.0

AnnotationAttrRef 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. Since: JPA 3.2

AnnotationRef jakarta.persistence.Column

seconds in a SQL time or timestamp column. Applies only to columns of time or timestamp type ... that the maximum number of digits supported by the database and JDBC driver should be stored in a timestamp

InterfaceRef jakarta.persistence.EntityManager

with a persistent identity that is currently associated with a persistence context. A detached ... entity instance belonging to the current persistence context. Parameters: entity - entity instance ... NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction

CriteriaBuilder.localDateTime() - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression localDateTime () Create expression to return current local datetime. Return: expression for current timestamp Since: JPA 2.0

EnumRef jakarta.persistence.TemporalType

java.sql.Date Since: JPA 1.0 TIME Map as java.sql.Time Since: JPA 1.0 TIMESTAMP Map as java.sql. Timestamp Since: JPA 1.0 Public Static Enum Methods: Method inherited from class java.lang.Enum compareTo

AnnotationRef jakarta.persistence.Basic

.Date , java.sql.Time , or java.sql. Timestamp , byte[] or Byte[] , char[] or Character[] , a Java enum

java 8 LocalDateTime is not working in query

to translate a value, which is at least a workaround. But ObjectDB currently doesn't support ... . Timestamp ; import java.time.LocalDateTime; import java.util.List; public class MyTestCase {   ... ; @Override         public java.sql. Timestamp convertToDatabaseColumn

InterfaceRef jakarta.persistence.EntityTransaction

()} is true Since: JPA 1.0 void commit () Commit the current resource transaction, writing any unflushed ... whether the current resource transaction has been marked for rollback. Return: boolean indicating ... Since: JPA 1.0 void rollback () Roll back the current resource transaction. Throws: IllegalStateException

InterfaceRef jakarta.persistence.EntityManagerFactory

already associated with the caller, then the EntityManager is associated with this current transaction. If the given ... - how and when the entity manager should be synchronized with the current JTA transaction Return: entity ... should be synchronized with the current JTA transaction map - properties for entity manager Return: entity

EnumRef jakarta.persistence.SynchronizationType

with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the () method. Since: JPA 2.1 Enum Constants SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA 2.1 UNSYNCHRONIZED

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