ObjectDB Database Search

1-50 of 175 results

LEFT JOIN FETCH over empty embedded collection returns no results

to my inquiry a few months ago. However, I have run into one problem: if an embedded collection is empty ... of the first collection, the result of the overall query is an empty set. To use the example from ... class C { @Id long id; List bList; }; If I have an instance of C where bList is empty , the following

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

Memory consumption of empty Strings

are empty (""). To avoid unnecessary memory consumption, the String within the entities are initialized like: String firstName = ""; In this case every " empty " attribute shares the same String. But after reloading the entities from objectdb, every empty String has become a new (unique) String

InternalError on query of empty database

. Please try it. support Support I'm now getting an empty set returned on empty database. Thanks!!!! pedwards Paul Edwards

Handling a case of searching an empty database

Handling a case of searching an empty database

Collections in JPQL and Criteria Queries

] EMPTY The IS [NOT] EMPTY operator checks whether a specified collection is empty . For example: c.languages IS EMPTY evaluates to TRUE if the collection is empty and FALSE otherwise. c.languages IS NOT EMPTY evaluates to TRUE if the collection is not empty and FALSE otherwise. SIZE The SIZE

Schema Update

configuration file contains an empty element. If this element is not empty , ObjectDB tries to apply

JPA Connections and Transactions

demonstrated above). To connect to an empty database and discard any existing content, specify ... ("objectdb:myDbFile.tmp;drop"); This feature is useful for tests because it provides a simple way to get an empty

JPA Lifecycle Events

defines all supported callback methods with empty implementations: @Entity public static class

FROM clause (JPQL / Criteria API)

, CURRENT_TIME, CURRENT_TIMESTAMP,DELETE, DESC, DISTINCT, ELSE, EMPTY , END, ENTRY, ESCAPE, EXISTS, FALSE

JPA Query Expressions (JPQL / Criteria)

: = , , = , IS [NOT] NULL , [NOT] BETWEEN Collection operators: [NOT] IN , IS [NOT] EMPTY , [NOT] MEMBER

Literals in JPQL and Criteria Queries

); // String literals: Expression empty = cb. literal (""); Expression jpa = cb. literal ("JPA"); // Date

JPA Criteria Queries

of CriteriaBuilder  as mutable empty objects, and then defined using setter methods. All query types (SELECT

jakarta.persistence.criteria.CriteriaBuilder

) Create an expression for string concatenation. If the given list of expressions is empty , returns ... that tests whether a collection is empty . Parameters: collection - expression Returns: is- empty ... that tests whether an element is a member of a collection. If the collection is empty

Internal exception: NPE on criteria query with IN clause and empty collection

use JPA criteria query API, and I pass an empty collection to IN expression: CriteriaBuilder cb ... )); //templateKeys is empty by mistake List services = em.createQuery(cq).getResultList(); As exception itself is nothing wrong here I guess (at least other JPA providers also throw on empty IN parameter

jakarta.persistence.metamodel.IdentifiableType

the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes ... -valued attributes) declared by the managed type. Returns empty set if the managed type ... declared by the managed type. Returns empty set if the managed type has no declared single-valued

jakarta.persistence.metamodel.EntityType

() Return the attributes declared by the managed type. Returns empty set if the managed type has no declared ... . Returns empty set if the managed type has no declared multivalued attributes. Inherited from ManagedType ... () Return the single-valued attributes declared by the managed type. Returns empty set

jakarta.persistence.metamodel.ManagedType

getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type ... attributes) declared by the managed type. Returns empty set if the managed type has no declared ... getDeclaredSingularAttributes () Return the single-valued attributes declared by the managed type. Returns empty set

jakarta.persistence.metamodel.EmbeddableType

empty set if the managed type has no declared attributes. Inherited from ManagedType Returns: declared ... -, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type ... attributes declared by the managed type. Returns empty set if the managed type has no declared single

jakarta.persistence.metamodel.MappedSuperclassType

the attributes declared by the managed type. Returns empty set if the managed type has no declared ... attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. Returns empty ... () Return the single-valued attributes declared by the managed type. Returns empty set if the managed type

jakarta.persistence.criteria.Subquery

(JPA) 2.1 Set getCorrelatedJoins () Return the correlated joins of the subquery. Returns empty set ... () Return a list of the grouping expressions. Returns empty list if no grouping expressions ... ) 1.0 Set getParameters () Return the parameters of the query. Returns empty set

jakarta.persistence.criteria.CriteriaQuery

getGroupList () Return a list of the grouping expressions. Returns empty list if no grouping ... expressions in order of precedence. Returns empty list if no ordering expressions have been specified ... . Since: Jakarta Persistence (JPA) 1.0 Set getParameters () Return the parameters of the query. Returns empty set

jakarta.persistence.TypedQuery

() Get the parameter objects corresponding to the declared parameters of the query. Returns empty set ... Query.getResultList Returns: a list of the results, each of type X , or an empty list ... an empty stream if there are no results. Throws: IllegalStateException - if called for a Jakarta

jakarta.persistence.criteria.AbstractQuery

(JPA) 1.0 List getGroupList () Return a list of the grouping expressions. Returns empty list ... (JPA) 1.0 Set getParameters () Return the parameters of the query. Returns empty set ... Subquery itself, including any subquery roots defined as a result of correlation. Returns an empty set

jakarta.persistence.criteria.PluralJoin

empty set if no fetch joins have been made from this type. Modifications to the set do not affect ... Persistence (JPA) 1.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty

jakarta.persistence.criteria.MapJoin

) 1.0 Set getFetches () Return the fetch joins that have been made from this type. Returns empty set ... .0 Set getJoins () Return the joins that have been made from this bound type. Returns empty set

jakarta.persistence.criteria.Root

(JPA) 1.0 Set getFetches () Return the fetch joins that have been made from this type. Returns empty ... () Return the joins that have been made from this bound type. Returns empty set if no joins

jakarta.persistence.criteria.SetJoin

(JPA) 1.0 Set getFetches () Return the fetch joins that have been made from this type. Returns empty ... ) 1.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty set

jakarta.persistence.criteria.CollectionJoin

that have been made from this type. Returns empty set if no fetch joins have been made from this type. Modifications ... this bound type. Returns empty set if no joins have been made from this bound type. Modifications to the set

jakarta.persistence.criteria.ListJoin

empty set if no fetch joins have been made from this type. Modifications to the set do not affect ... (JPA) 1.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty

jakarta.persistence.criteria.From

this type. Returns empty set if no fetch joins have been made from this type. Modifications ... (JPA) 1.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty set

jakarta.persistence.criteria.Join

this type. Returns empty set if no fetch joins have been made from this type. Modifications to the set ... ) 1.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty set

jakarta.persistence.AttributeNode

node's map key or an empty Map if none have been defined. Since: Jakarta Persistence (JPA) 1.0 Map ... of subgraphs associated with this attribute node or an empty Map if none have been defined. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.PersistenceConfiguration(String)

Jakarta Persistence (JPA) Constructor in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration (    String name ) Create a new empty configuration. An empty configuration does not typically hold enough information for successful invocation of PersistenceConfiguration

jakarta.persistence.criteria.CriteriaBuilder.isEmpty(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate isEmpty (    Expression collection ) Create a predicate that tests whether a collection is empty . Parameters: collection - expression Returns: is- empty predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.isNotEmpty(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate isNotEmpty (    Expression collection ) Create a predicate that tests whether a collection is not empty . Parameters: collection - expression Returns: is-not- empty predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Graph

in the graph or an empty list if none have been defined. Since: Jakarta Persistence (JPA) 1.0 boolean

jakarta.persistence.Convert

be specified. (In this case the path relative to the annotated element is simply the empty path.) Default

jakarta.persistence.EntityGraph

in the graph. Inherited from Graph Returns: list of attribute nodes included in the graph or an empty

jakarta.persistence.criteria.Predicate

of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate

jakarta.persistence.metamodel.Metamodel

am empty set if there are no embeddable types. Returns: the metamodel embeddable types

jakarta.persistence.criteria.CriteriaBuilder.In

of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate

jakarta.persistence.criteria.CommonAbstractCriteria

empty set if there are no parameters. Modifications to the set do not affect the query. Returns

jakarta.persistence.criteria.CriteriaUpdate

Set getParameters () Return the parameters of the query. Returns empty set

jakarta.persistence.criteria.Fetch

that have been made from this type. Returns empty set if no fetch joins have been made from

jakarta.persistence.criteria.CriteriaDelete

the parameters of the query. Returns empty set if there are no parameters. Modifications to the set

[ODB1] Chapter 9 - ObjectDB Explorer

desktop lists all the persistent classes in the database. For a new, empty database this window is empty . A new persistent class is automatically added to the database when its first instance is stored ... " are initialized to contain all the persistent fields, but the "Summary" is initialized as an empty view

[ODB1] Chapter 2 - A Quick Tour

empty (not the first run), a previously stored ArrayList instance is expected to be retrieved from ... and a new empty ArrayList instance is created (line 24). The new ArrayList instance is bound ... in the package (e.g. line 6). Both and elements must have a name attribute. An empty name

[ODB1] Chapter 8 - ObjectDB Server

can be overridden, as demonstrated by user3 : Three attributes are changed. The empty address attribute

[ODB1] Chapter 3 - Persistent Classes

with all the four methods, keeping the methods that are irrelevant empty . For example: package test; import