ObjectDB Database Search
1-50 of 103 resultsLiterals in JPQL and Criteria Queries Literals in JPQL , as in Java, represent constant values. JPQL supports various types of literals ... type literals (for example, Country ). Use JPQL literals sparingly. Queries that use parameters ... times with different parameter values. Embed literals in JPQL queries only when a single, constant | |
JPA Query Structure (JPQL / Criteria) The syntax of the Jakarta Persistence Query Language ( JPQL ) is similar to SQL. This is a key ... with it. The main difference between SQL and JPQL is that SQL operates on relational database tables, while JPQL operates on Java classes and objects. For example, a JPQL query can retrieve entities, unlike SQL | |
SELECT clause (JPQL / Criteria API) The ability to retrieve managed entities is a key advantage of JPQL . For example, the following ... for deletion , and so on. Query results are not limited to entities. You can use almost any valid JPQL ... must always be specified explicitly. JPQL does not support the the SELECT * expression, which is common in SQL | |
FROM clause (JPQL / Criteria API) By default, the name of an entity class in a JPQL query is the unqualified name of the class ... variables represent iteration over all the database objects of a specified entity type. JPQL provides ... variable: SELECT c1, c2 FROM Country c1 INNER JOIN c1.neighbors c2 In JPQL , JOIN can appear only in | |
WHERE clause (JPQL / Criteria API) is small, which makes indexes even more essential. JPQL expressions in WHERE The previous queries ... JPQL expression syntax , which includes many operators (arithmetic, relational, and logical) and functions (numeric, string, and collection). The WHERE predicate is always a boolean JPQL expression | |
JPA Query Expressions (JPQL / Criteria) JPQL and criteria queries are built on query expressions. Every query consists of clauses , such as SELECT , FROM , WHERE , GROUP BY , HAVING , and ORDER BY . Each clause is composed of JPQL or Criteria API expressions. Atomic expressions The atomic query expressions are: JPQL / Criteria Variables | |
Strings in JPQL and Criteria Queries String values can appear in JPQL queries in several forms: As string literals , for example, 'abc ... that navigate to persistent string fields. As the results of predefined JPQL string manipulation functions ... . Criteria query string expressions Query String Expressions The JPQL string operators and functions | |
Date and Time in JPQL and Criteria Queries Date and time expressions can appear in JPQL queries in the following ways: As date and time ... the results of predefined JPQL functions that return the current date and time. Current date and time JPA defines special JPQL expressions that return the date and time from the database server | |
Collections in JPQL and Criteria Queries Collections can appear in JPQL queries in the following ways: As parameters when a collection ... not contain 'English' , and FALSE otherwise. As an extension to standard JPQL , ObjectDB allows ... are synonyms. Criteria query collection expressions The JPQL collection operators and functions | |
Logical Operators in JPQL and Criteria API Logical operators in JPQL and JPA criteria queries combine simple Boolean expressions to form complex expressions. Logical operators ObjectDB supports two sets of logical operators, as shown in the following table: Set 1: JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation | |
Numbers in JPQL and Criteria Queries Numeric values can appear in JPQL queries in several forms: As numeric literals , such as 123 and -12.5 . As parameters that are bound to numeric arguments. As path expressions that navigate ... type and always returns a double value. Criteria query arithmetic expressions JPQL arithmetic operators | |
DELETE Queries in JPA/JPQL operation. Apply changes to the database by calling the commit method. JPQL DELETE queries provide | |
JPA Query API ("SELECT c FROM Country c", Country.class); In the preceding code, the same JPQL query ... because it introduces the Country class to ObjectDB. Dynamic JPQL , Criteria API, and named queries In JPA, building queries by passing JPQL query strings directly to the createQuery method is called | |
Query Parameters in JPA their format: a colon (:) followed by a valid JPQL identifier that serves as the parameter name. JPA ... Parameters (?index) In addition to named parameters, which use the :name format, JPQL also supports ordinal ... the application to JPQL injection attacks. For example, suppose the name parameter is received as user input | |
Setting and Tuning of JPA Queries the query language to one of the following: " JPQL " (JPA Query Language), "JDOQL" (JDO Query Language), or "ODBQL" (ObjectDB Query Language). The default is ODBQL , which is a union of JPQL , JDOQL, and ObjectDB extensions. Setting the language to " JPQL " is useful for enforcing portable JPA code | |
JPA Queries Jakarta Persistence provides powerful APIs for executing database queries using JPQL strings or ... EntityManager methods such as createQuery to build query objects using: Direct JPQL query strings ... rather than string-based JPQL . Criteria queries are built using CriteriaBuilder : This is the main factory | |
Modifying something with Explorer -> app JPQL with Enum doesn't work anymore. The problem is that redeploying the application after that kind of usage of Explorer makes JPQL with Enum ... is that redeploying the application after that kind of usage of Explorer makes JPQL with Enum to don't work ... application. What happens when you run that JPQL query in the Explorer? In another Explorer? Try to bring | |
JPQL JOIN FETCH Error Hello I get an error when executing the following JPQL query: select doi from Doi doi left join ... with Oracle / MySQL / Postgres, so I'm assuming the JPQL is valid. Any ideas? Thanks John johnbrush John Brush The query is not a valid JPQL query since JOIN FETCH should be followed by a path | |
Possible issue for JPQL "LEFT [OUTER] JOIN" Possible issue for JPQL "LEFT [OUTER] JOIN" is doing "[INNER] JOIN". Thanks. eurojet P. F. Martinez Thank you for this report. Please try build 2.3.7_18 that should fix this issue. support Support Great and fast solution but it doesn't work with the following JPQL queries string:   | |
Delete object from collection versus delete from JPQL and use persist() to write them to the database. But does running a JPQL update or delete alter the in-memory objects? There are cases where the JPQL syntax is more expressive than operating | |
JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated ... understood the JPA JPQL IN clause should work with Enum types - is that the case, or is this an 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:   ... / Jpql style not xml. I can only see select statements, but I also want to see insert, update | |
member visiting in jpql gzdillon Lai Yang The length field of arrays is not supported by JDOQL / JPQL queries. You may maintain | |
JPQL Error I am trying to run ObjectDB first time in a production server. Operating System: Ubuntu Ubuntu 22.04.1 LTS ObjectDB Version: 2.8.8 (Downloaded) ObjectDB version in Maven: 2.8.8 (I don't know how comes 2.8.1 comes in the error message) When I try to run jpql , it gives this error [ObjectDB 2.8 | |
Possible issue for JPQL IN expression Possible issue for JPQL IN expression with a set of more than one string literals values in the path expression. Error: Exception in thread "main" [ObjectDB 2.3.7_10] SELECT e FROM MyEntity e WHERE e.country IN ('US' == , | |
Possible issue for JPQL IS EMPTY expression Possible issue for JPQL IS EMPTY comparison expression: SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type for operator IS EMPTY (error 756) Thanks. Note: It doesn' t work with SIZE(): SELECT e FROM MyEntity e | |
Will Entire JPQL Supported by ObjectDb? JPQL features are not supported yet by ObjectDB. The main missing feature is subqueries | |
find repeated records by JPQL Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)1) I dont know how to do this using JPQL , but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: Exception in | |
Retrieving JPA Entities language for JPA is the Jakarta Persistence Query Language ( JPQL ). It enables you to retrieve objects from the database by using both simple and complex queries. JPA queries and JPQL are described in | |
SQL Queries Annotations Jakarta Persistence (JPA) provides a set of annotations to define and map native SQL queries when the standard Java Persistence Query Language ( JPQL ) is insufficient. While ObjectDB focuses on JPQL and ignores these annotations, they remain essential for applications interacting with relational | |
JPQL query to get entities that does not have a child entity in their child entitiesJPQL query to get entities that does not have a child entity in their child entities | |
JPA Named Queries Annotations Jakarta Persistence (JPA) provides annotations to define static, reusable queries at the class level, separating query logic from business code. Query definitions Declare named queries using the following annotations: Specifies a static, named query in the Jakarta Persistence Query Language ( JPQL | |
Is ObjectDB better than competing object databases?, including aggregate queries, as part of its support of JPQL (JPA Query Language) and JDOQL (JDO Query Language). ObjectDB is faster than other products. | |
JPA Extended API Reference Guide, criteria queries, and JPQL for data retrieval and manipulation. Describes the metamodel and graph APIs | |
JPA Named Queries A named query is a statically defined query with a predefined, unchangeable query string. Using named queries instead of dynamic queries can improve code organization by separating JPQL query strings from Java code. This practice also enforces the use of query parameters instead of embedding | |
What are the main benefits of using ObjectDB? processes JPQL (JPA Query Language) and JDOQL (JDO Query Language) queries directly, where ORM tools first | |
JPA Criteria Queries The Jakarta Persistence (JPA) Criteria API provides a type-safe, programmatic alternative to string-based JPQL for constructing dynamic queries, ensuring compile-time safety and facilitating easier refactoring. It defines a structured hierarchy of interfaces for SELECT, UPDATE, and DELETE | |
ObjectDB 2.9 Developer's Guide how to use the JPA Query Language ( JPQL ). Presents ObjectDB Tools: the Explorer, the Enhancer, the Doctor | |
Deleting JPA Entities the database. They are especially useful for deleting many entities in a single operation. For more information, see DELETE Queries in JPA/ JPQL . | |
Is ObjectDB a NoSQL Database?, using two standard Java query languages: JPQL (Java Persistence Query Language) and JDOQL (JDO | |
jakarta.persistence.criteria.CriteriaBuilder is reversed compared to the corresponding function in JPQL . Parameters: x - expression for string ... to the corresponding function in JPQL . Parameters: x - expression for string to be searched pattern - string ... function in JPQL . Parameters: x - expression for string to be searched pattern - expression for string | |
JPQL Subqueries (JPA 1.0) The JPQL (Java Persistence Query Language) supports defining subqueries, which are nested queries that are embedded in other queries. Subqueries are currently not supported by ObjectDB, and as a workaround, you can use a sequence of two or more queries, where the results of one query serves as a parameter in the next queries. support Support | |
jakarta.persistence.criteria.Path. Since: Jakarta Persistence (JPA) 2.0 The Paths and Types in JPQL and Criteria API article explains | |
jakarta.persistence.criteria.Predicate. Since: Jakarta Persistence (JPA) 2.0 The Logical Operators in JPQL and Criteria API article explains | |
jakarta.persistence.criteria.Order Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Order An object that defines an ordering over the query results. Since: Jakarta Persistence (JPA) 2.0 The ORDER BY clause ( JPQL / Criteria API) article explains how to use Order . Public Instance Methods Expression getExpression | |
jakarta.persistence.criteria.Selection Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Selection Type Parameters: - the type of the selection item Super Interfaces: TupleElement The Selection interface defines an item that is to be returned in a query result. Since: Jakarta Persistence (JPA) 2.0 The SELECT clause ( JPQL | |
jakarta.persistence.criteria.Root Persistence (JPA) 2.0 The FROM clause ( JPQL / Criteria API) article explains how to use Root | |
jakarta.persistence.TypedQuery Jakarta Persistence (JPA) Interface jakarta.persistence.TypedQuery Type Parameters: - query result type Super Interfaces: Query Interface used to control the execution of typed queries. See Also: Query Parameter Since: Jakarta Persistence (JPA) 2.0 Chapter 4 - JPA Queries ( JPQL / Criteria | |
jakarta.persistence.criteria.Expression Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Expression Type Parameters: - the type of the expression Super Interfaces: Selection , TupleElement Type for query expressions. Since: Jakarta Persistence (JPA) 2.0 The JPA Query Expressions ( JPQL / Criteria) article explains | |
jakarta.persistence.criteria.Join Persistence (JPA) 2.0 The FROM clause ( JPQL / Criteria API) article explains how to use Join . Public |