ObjectDB Database Search

1-50 of 200 results

SELECT clause (JPQL / Criteria API)

query = em. createQuery ("SELECT c FROM Country c", Country.class); List results = query. getResultList (); Because the results are managed entities they have all the support that JPA provides ... for deletion , and so on. Query results are not limited to entities. You can use almost any valid JPQL

Query only works correctly when debug printing results

on pc) the query results are only fully read back when debug printing the result contents before ... part commented out, the result doesnt contain all the data. The field requirementList is read back as null ... RequirementLevelEntity l", RequirementLevelEntity.class); List results = query.getResultList(); //Start of debug

LEFT JOIN FETCH over empty embedded collection returns no results

of the first collection, the result of the overall query is an empty set. To use the example from ... include the full nested fetch, it fails, returning an empty result list: SELECT c FROM C c LEFT JOIN ... of the query).   The following query returned results : SELECT c FROM C c LEFT JOIN FETCH c.bList.aList

@ElementCollection query returning extra result per element in collection

. The issue is that, I'm getting repeated results of the owning entity of an '@ElementCollection ... ($1.name) LIKE :p1) AND (($1.conditionOne=:p2))) Got: 1 results - correct   ... .branches.branch=:p2) OR ($1.conditionOne=:p3)))) Only expected one result , but got: 2  

URGENCY, or in query does not report any objects on first operand having no results

and a.transferred = 0 there are all the results for the condition a.state = 3 it seems that the or ... )),(a.type=0)),(a.transferred=0)). [Step 2] Apply selection and prepare final results . 3:notNull ... hgzpincher Hans-Georg Zwicker Checked with 2.8.9 and both queries return 1421 results , so hopefully

JPA-Query does not lead to any result

Hi, we have a database with a Entitiy inside which we want to fetch with a query. Normally that works without a problem, but in case of this database that query does not have any results . Can anyome ... are two databases, one where the query has a result and one where the query does not has any results

wrong query result

Hi we have a problem with queries, database is returning wrong results . These are the queries ... correct results We had this problem on records created on 13 and 14 January, problem was detected ... , Attached are a db repair log and a screenshot of queries and results . We will upload the DB through private

Indexing a field results in internal Exception

annotation.  Is there anything I can look for that might result in this exception? sjzlondon Steve Zara

Bug with unique constraint exception not resulting in transaction roll back

does result in a transaction rollback as expected.   However, this same method

Setting and Tuning of JPA Queries

getSingleResult . Result range (setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods let you define a result window, which is a portion of a large query result list. The setFirstResult method specifies the starting point of the result window by defining how many results to skip from

FROM clause (JPQL / Criteria API)

) is not part of any iterated pair and is therefore excluded from the query results . INNER JOIN ... performance problems. For example, consider the following query execution and result iteration: TypedQuery query = em. createQuery ("SELECT c FROM Country c", Country.class); List results = query

Database Management Settings

can improve performance by reducing file fragmentation that can result from frequent resize operations ... sync= "false" results in much faster database writes, but sync="true" is safer for production ... for the two query cache mechanisms that ObjectDB manages: The results attribute specifies the size

SQL Queries Annotations

dialect. Groups multiple @NamedNativeQuery definitions on a single class. Result set mapping Map the results of native SQL queries to entities or scalar values using these annotations: Defines how the result set of a native query maps to entities, scalar values, or constructor results . Groups

JPA Query API

result type is unknown or when a query returns polymorphic results whose lowest common denominator is Object . When a more specific result type is expected, use the TypedQuery interface. The TypedQuery interface makes it easier to run queries and process results in a type-safe manner. Building queries

Logical Operators in JPQL and Criteria API

is NULL and the other is FALSE , the result is FALSE because one FALSE operand is sufficient to make the expression false. If one operand is NULL and the other is TRUE or NULL , the result is NULL ... and the other is TRUE , the result is TRUE because one TRUE operand is sufficient to make the expression true

JPA Named Queries

literals dynamically into the query string, which results in more efficient queries. @NamedQuery ... takes a query name and a result type and returns a TypedQuery instance: TypedQuery query = em. createNamedQuery ("Country.findAll", Country.class); List results = query. getResultList

jakarta.persistence.criteria.MapJoin

The MapJoin interface is the type of the result of joining to a collection over an association or element ... : may result in a runtime failure. Inherited from Expression Parameters: type - intended type ... expression object. Unlike Expression.as , this method does result in a runtime type conversion

jakarta.persistence.criteria.SetJoin

of the result of joining to a collection over an association or element collection ... cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure ... Expression.as , this method does result in a runtime type conversion. Providers are required to support

jakarta.persistence.criteria.CollectionJoin

interface is the type of the result of joining to a collection over an association or element collection ... : may result in a runtime failure. Inherited from Expression Parameters: type - intended type ... expression object. Unlike Expression.as , this method does result in a runtime type conversion

jakarta.persistence.criteria.PluralJoin

does not cause type conversion: the runtime type is not changed. Warning: may result in a runtime ... Expression.as , this method does result in a runtime type conversion. Providers are required ... FetchParent Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta

Numbers in JPQL and Criteria Queries

numeric promotion principles. For example, the result of a binary arithmetic operation on an int value ... of a numeric argument. The result is always a positive number or zero. For example: ABS(-5) evaluates to 5 ... arguments and returns an integer value. If both operands have the same type, the result

Query Parameters in JPA

with different parameter values to retrieve different results . Executing the same query multiple times ... filters the query results to Country objects whose name field is equal to :name . The :name identifier ... has several drawbacks. First, the query is not reusable. Different literal values result in different query

jakarta.persistence.criteria.Root

. Warning: may result in a runtime failure. Inherited from Expression Parameters: type - intended type ... , returning a new expression object. Unlike Expression.as , this method does result in a runtime type ... : the resulting fetch join. Since: Jakarta Persistence (JPA) 1.0 Fetch fetch ( SingularAttribute

jakarta.persistence.criteria.CriteriaBuilder

an all expression over the subquery results . Parameters: subquery - subquery Returns: all expression ... any ( Subquery subquery ) Create an any expression over the subquery results . This expression ... to specify a constructor that is applied to the results of the query execution. If the constructor

jakarta.persistence.EntityManager

must also be flushed before execution of any query whose result set would be affected by unflushed modifications ... ( ConnectionFunction function ) Call the given function and return its result using the database connection ... result Returns: the new query instance. Throws: IllegalArgumentException - if a query has not

jakarta.persistence.criteria.Subquery

. Warning: may result in a runtime failure. Inherited from Expression Parameters: type - intended type ... a new expression object. Unlike Expression.as , this method does result in a runtime type ... distinct ) Specify whether duplicate query results are eliminated. A true value will cause duplicates

JPA Criteria Query Expressions

interfaces is structured as follows: Selection # Base interface for result items └─ Expression # Base ... ;to allow using expression as query results . A boolean expression used to define restrictions in

Apache License, Version 2.0, January 2004

resulting from mechanical transformation or translation of a Source form, including but not limited ... , incidental, or consequential damages of any character arising as a result of this License or

JPA Entity Fields

this case, the employees field is populated with the results of the following query: SELECT e FROM ... results by specifying the key field with the @MapKey annotation: @Entity public class Department

Database Transaction Replayer

and recording files and attempts to apply all the recorded operations. The resulting database file ... and applies all operations up to transaction 1000, the resulting file is named 1000.odb .

JPA Named Queries Annotations

instances of the following interface: Represents a named query, including its name, result type, and hints. Retrieve it by result type from EntityManagerFactory.getNamedQueries , and use it to get a TypedQuery instance via EntityManager.createQuery .

JPA Queries

for queries where the result type is known. It is preferred over the legacy Query interface because it eliminates the need for casting results . Controls the execution of stored procedures (not applicable

WHERE clause (JPQL / Criteria API)

to the SELECT clause to be collected as query results , the WHERE clause acts as a filter. The boolean ... and collected as query results . WHERE predicate and indexes Formally, the WHERE clause functions as a filter

ObjectDB - JPA Object Database for Java

and eliminates the ORM layer. The result is better performance and faster applications, especially when the object data model is complex. See JPA benchmark results ...   Reduce development time. Improve

jakarta.persistence.TypedQuery

Jakarta Persistence (JPA) Interface jakarta.persistence.TypedQuery Type Parameters: - query result ... result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Inherited from Query Returns: position of the first result . Since: Jakarta Persistence (JPA

jakarta.persistence.criteria.CriteriaBuilder.Case

cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure ... Expression.as , this method does result in a runtime type conversion. Providers are required to support ... for inequality. Since: Jakarta Persistence (JPA) 3.2 Expression otherwise ( R result ) Add

ObjectDB License Agreement [ver. 2.0.4]

out of, or related to, use of the Software. 6. The Customer may not disclose the  results of any

Strings in JPQL and Criteria Queries

String values can appear in JPQL queries in several forms: As string literals , for example, 'abc' and '' . As parameters when string values are passed as query arguments. As path expressions that navigate to persistent string fields. As the results of predefined JPQL string manipulation functions

Date and Time in JPQL and Criteria Queries

the results of predefined JPQL functions that return the current date and time. Current date and time

Index Definition

. ObjectDB also uses indexes for sorting results and for projection: SELECT MIN(p.x) FROM Point p WHERE p.x

Auto Generated Values

might not be used. Therefore, this strategy can result in gaps in the sequence values.nd  The Table

JPA Query Structure (JPQL / Criteria)

the database. The SELECT clause defines the query results . The query above returns every Country

Database Doctor

results are written to standard output. Running doctor repair To run the ObjectDB Doctor in repair mode

Is ObjectDB better than Object Relational Mapping (ORM)?

As noted above, using ObjectDB instead of a relational database and ORM combination is easier and leads to better performance. ORM tools, however, are very useful where the use of a relational database is mandatory (e.g. as a result of a customer request or when a new application

JPA Criteria Queries

the result type of a selection query. It is extended by CriteriaQuery to support the definition

JPA Web App Tutorial - Maven Project

, you may download and run the result application as a Maven project: JPA Web App - Maven Project (6KB

Step 4: Add a Controller Class

)); // Prepare the result view (guest.jsp): return new ModelAndView("guest.jsp", "guestDao", guestDao

Java EE JPA Tutorial - Maven Project

;if you prefer, you may download and run the result application as a Maven project: Java EE JPA Web

Step 4: Add a Controller Class

"); if (name != null) guestDao.persist(new Guest(name)); // Prepare the result view (guest.jsp): return

Getting Started with JPA - Maven Project

The Getting Started with JPA tutorial provides step by step instructions on how to build a simple JPA database driven application in Eclipse or NetBeans . Building a new application step by step is an effective way to learn - but if you prefer, you may download and run the result