ObjectDB Database Search

1-50 of 164 results

JPA Annotations for SQL Queries

The following JPA annotations are designated for SQL queries on relational databases: ObjectDB supports only the preferred JPA query language, JPQL, and silently ignores all the above annotations.

JPA Persistable Types

, java.math.BigDecimal . java.lang.String . java.util.Date , java.util.Calendar , java. sql .Date , java. sql .Time , java. sql .Timestamp . Date and time types are discussed in more detail in the next paragraph. Date and Time (Temporal) Types The java. sql date and time classes represent different parts

Literals in JPQL and Criteria Queries

to null in Java and SQL . Since JPQL is case insensitive, NULL , null and Null are equivalent. Notice that comparison with NULL in JPQL follows the SQL rules for NULL comparison rather than the Java rules, as explained in the Comparison Operators page. Boolean Literals Similarly to Java and SQL , JPQL

ObjectDB Object Database Features

DataNucleus could start using ObjectDB immediately. SQL -like (but object based) query language - familiar ... .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

JPA Query Structure (JPQL / Criteria)

The syntax of the Java Persistence Query Language (JPQL) is very similar to the syntax of SQL . Having an SQL -like syntax in JPA queries is an important advantage because SQL is a very powerful query language and many developers are already familiar with it. The main difference between SQL and JPQL

java.sql.Date equals comparison not working with CriteriaAPI

Hello, Using ODB 2.4.5 and the Criteria API, doing a simple equals comparison with java. sql .Date ... = ...; Root root = ...; java. sql .Date myDate = ...; Predicate predicate = builder.equal(root ... is exactly the same like the value of eintritt field in the DB. java. sql .Date is used

com.objectdb.o.InternalException: java.lang.NoClassDefFoundError: java/sql/Date

.NoClassDefFoundError: java/ sql /Date java.lang.NoClassDefFoundError: java/ sql /Date at objectdb/com ... .JavaObjectDBApp.main(JavaObjectDBApp.java:14) Caused by: java.lang.ClassNotFoundException: java. sql .Date ... is ... module ObjectDBTest { requires objectdb; } This is perplexing because java. sql .Date comes with the JDK

native sql queries

Is there a way to run native SQL queries in ObjectDB? I would guess 'no' since it is an oodbms ...   FredrikB Fredrik Bökman Native SQL queries are not supported because there is no underlying RDBMS. But since SQL and JPQL are very similar it could be possible in future releases to support

java.sql.Timestamp with milliseconds

, this can usually be overcome using (see here http://docs.oracle.com/javase/1.5.0/docs/api/java/ sql ... . How can I modify my declaration to include milliseconds ? I am not particularly attached to using java. sql ... . sql .*; import javax.persistence.*; public class T1985 {     public static void main

Finance data from SQL Server into ObjectDB daily

data mart that is appended to daily via an SSIS package. I would like to pull the data from SQL , add ... this make sense? Is there a way to map the structure of the table directly into ObjectDB from SQL Server

java.sql.Timestamp.getTime() not working

. sql  types, including Time, Date and Timestamp are not supported directly. The workaround is to use casting: SELECT ((java. sql .Timestamp)p.loginAt).getTime() FROM Player p or to use java.util

The attribute column name (EXCEPTION) is a reserved SQL-99 keyword.

How do I fix this error/warning that Netbeans gives me? "The attribute column name (EXCEPTION) is a reserved SQL -99 keyword." ThreaT Ashton Hogan This warning indicates mapping to a field in the database that its name conflicts with SQL . This is not an issue with ObjectDB

Show Sql/Jpql

Is there a way to show the executed Sql /Jpql in the console? wua Andreas Wurm You can set the log element in ObjectDB configuration to write logging also to the console:      ... :      support Support I know that, but is there a possibility to see it in Sql

java.sql.Time field off by 30 minutes

Hihi, I'm wondering if this is a bug. I have a simple entity with java. sql .Time field. On writing and readback, the field is found to be 30 minutes off. It is observed on objectdb explorer as well. Timestamp works perfectly fine. Ps. dont think its a UTC issue. My system is set at far off UTC

How to creat a Query with Sql which returns a List marks

How can i get out of the db my Athlete Objekt his list marks collection with a createQuery Sql -Statement. the Mark and Athlete Object do not really have a primary or secondary key together, the list mark is just stored in the athletes object, not as an embeddable but as an entity. i tried

Comparison in JPQL and Criteria API

- JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal != The two sets differ in the Equal and the Not Equal operators. JPQL follows the SQL notation, where Java uses ... which, for example, null == null is true . All the other operators implement the SQL logic in

Date and Time in JPQL and Criteria Queries

- is evaluated to the current date (a java. sql .Date instance). CURRENT_TIME - is evaluated to the current time (a java. sql .Time instance). CURRENT_TIMESTAMP - is evaluated to the current timestamp, i.e. date and time (a j ava. sql .Timestamp instance). Extracting Date Parts JPA doesn't define standard

Index Definition

.BigInteger , java.math.BigDecimal. java.lang.String. java.util.Date , java. sql .Date , java. sql .Time , java. sql .Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain

JPA Criteria API Queries

JPQL JPQL queries are defined as strings, similarly to SQL . JPA criteria queries, on the other hand ... rather than at runtime. On the other hand, for many developers string based JPQL queries, which are very similar to SQL ... in JPA (as in SQL ) are composed of clauses. Because JPQL queries and criteria queries use equivalent

JPA Primary Key

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

Strings in JPQL and Criteria Queries

', 'a') is evaluated to 0. Notice that positions are one-based (as in SQL ) rather than zero-based (as in Java ... are one-based (as in SQL ) rather than zero-based (as in Java). If length is not specified

Logical Operators in JPQL and Criteria API

of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR || NOT ! JPQL follows the SQL notation, while Java uses its own notation (which is also in use by JDOQL

What are the main benefits of using ObjectDB?

convert these queries to SQL and then transition the SQL to the DBMS for execution through a JDBC

What is ObjectDB?

or convert objects to records/records to objects using SQL or ORM, as opposed to when using relational database systems (RDBMS), such as Oracle, DB2, SQL Server or MySQL.

Chapter 4 - JPA Queries (JPQL / Criteria)

The JPA Query Language (JPQL) can be considered as an object oriented version of SQL . Users familiar with SQL should find JPQL very easy to learn and use. This chapter explains how to use JPQL as well as how to use the JPA Criteria API, which provides an alternative way for building queries in JPA

SELECT clause (JPQL / Criteria API)

the "SELECT *" expression (which is commonly used in SQL ). Projection of Path Expressions JPQL

What is the Java Persistence API (JPA)?

order to interact with a relational database such as Oracle, DB2, SQL Server or MySQL. The popular JPA

Where can I learn how to use ObjectDB?

experience in database development, SQL or JPA, but such experience is definitely not a prerequisite.

ObjectDB 2.9 Developer's Guide

A prior knowledge of database programming ( SQL , JDBC, ORM or JPA) is not required in order to follow

Is ObjectDB a NoSQL Database?

Query Language). The power of these query languages is equivalent to the power of SQL

JPA Annotations

between a relational database and an object model and for direct SQL queries): These ORM annotations are silently ignored by ObjectDB.

GROUP BY and HAVING clauses

of SQL : COUNT - returns a long value representing the number of elements. SUM - returns the sum

Criteria Query From Elements

The interfaces in this group are in use for setting a criteria query FROM clause. Criteria Query Variables The FROM clause  in JPA queries (as in SQL ) defines the query variables. Query variables are represented in criteria queries by descendant interfaces of the From interface: Range

com.objectdb.o.InternalException: java.lang.NoClassDefFoundError: java/sql/Date

: java.lang.NoClassDefFoundError: java/ sql /Date java.lang.NoClassDefFoundError: java/ sql /Date ... .main(Main.java:19) Caused by: java.lang.ClassNotFoundException: java. sql .Date at java.base/jdk ... idea why java. sql .Date is not found in the classpath? Which Java version are you using? Do you use

javax.persistence.EntityManager

an instance of Query for executing a named query (in the Java Persistence query language or in native SQL ... createNativeQuery (String sqlString) Create an instance of Query for executing a native SQL statement ... will result in each row of the SQL result being returned as a result of type Object[] (or a result of type

javax.persistence.MapKeyJoinColumn

columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to SQL generated by the provider for the column. Since: JPA 2.0 ForeignKey foreignKey ... (Optional) Whether the column is included in SQL INSERT statements generated by the persistence

javax.persistence.MapKeyColumn

String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to the generated SQL to create a column of the inferred type. Since: JPA 2.0 boolean insertable default true (Optional) Whether the column is included in SQL INSERT

javax.persistence.OrderColumn

columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to generated SQL to create a column of the inferred type. Since: JPA 2.0 boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by

javax.persistence.Column

; } Since: JPA 1.0 Public Annotation Attributes String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to the generated SQL to create ... is included in SQL INSERT statements generated by the persistence provider. Since: JPA 1.0 int

javax.persistence.JoinColumn

Attributes String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to the generated SQL for the column. Since: JPA 1.0 ForeignKey foreignKey ... true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence

Step 2: Entity Class and Persistence Unit

.Serializable; import java. sql .Date; import javax.persistence.Entity; import javax.persistence

Step 2: Entity Class and Persistence Unit

.Serializable; import java. sql .Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue

Step 2: Entity Class and Persistence Unit

java.io.Serializable; import java. sql .Date; import javax.persistence.Entity; import javax.persistence

Step 2: Entity Class and Persistence Unit

.Serializable; import java. sql .Date; import javax.persistence.Entity; import javax.persistence

Step 2: Define a JPA Entity Class

.Serializable; import java. sql .Date; import javax.persistence.Entity; import javax.persistence

Step 2: Define a JPA Entity Class

code: package guest; import java.io.Serializable; import java. sql .Date; import javax.persistence.Entity

javax.persistence.Basic

, String , java.math.BigInteger , java.math.BigDecimal , java.util.Date , java.util.Calendar , java. sql .Date , java. sql .Time , java. sql .Timestamp , byte[] , Byte[] , char[] , Character[] , enums, and any

[ODB1] Chapter 1 - About ObjectDB

with tables, records and SQL in addition to the application's classes and objects. ObjectDB is JDO ... DB2 and Microsoft SQL Server. In addition, by using JDO you are backed up by a large community ... , you can forget relational databases, tables, records, fields, SQL , JDBC and drivers, and focus your attention

[ODB1] Chapter 7 - JDOQL Queries

SQL for RDBMS. It provides object retrieval from the database according to a specified selectioPlan ... expressions (a possible replacement to the like operator of SQL ). To use methods of user defined

ObjectDB 1.0 Manual

( SQL , JDBC or JDO) is not required in order to follow this guide, but a strong background