ObjectDB Database Search

1-50 of 136 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 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

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

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.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.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.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.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.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

Updating Entities

() { @Override protected void updateItem(String item, boolean empty ) { if(item != null) { setText(item ... void updateItem(String item, boolean empty ) { if(item != null) { setText(item); setAlignment(Pos ... item, boolean empty ) { if(item != null) { setText(item); setAlignment(Pos.CENTER); } } }); dept

jakarta.persistence.metamodel.ManagedType.getPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getPluralAttributes() Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Returns

jakarta.persistence.metamodel.ManagedType.getDeclaredPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredPluralAttributes() Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multivalued

jakarta.persistence.criteria.AbstractQuery.getRoots()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Set getRoots() Return the query roots. These are the roots that are defined for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots

jakarta.persistence.metamodel.Metamodel.getEmbeddables()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.Metamodel Set getEmbeddables() Return the metamodel embeddable types. Returns am empty set if there are no embeddable types. Returns: the metamodel embeddable types. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.getGroupList()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery List getGroupList() Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Returns: the list of grouping expressions. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CommonAbstractCriteria.getParameters()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CommonAbstractCriteria Set getParameters() Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Returns: the query parameters. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getSingularAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getSingularAttributes() Return the single-valued attributes of the managed type. Returns empty set if the managed type has no single-valued attributes. Returns: single-valued attributes. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getDeclaredSingularAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredSingularAttributes() Return the single-valued attributes declared by the managed type. Returns empty set if the managed type has no declared single-valued attributes. Returns: declared single-valued attributes. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.ManagedType.getDeclaredAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredAttributes() Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Returns: declared attributes of the managed type. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Predicate.getExpressions()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Predicate List getExpressions() Return the top-level conjuncts or disjuncts of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate. Modifications to the list do not affect the query

jakarta.persistence.criteria.Subquery.getCorrelatedJoins()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Set getCorrelatedJoins() Return the correlated joins of the subquery. Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. Returns: the correlated joins of the subquery. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getResultStream()

to provide additional capabilities. Returns: a stream of the results, each of type X , or an empty stream

jakarta.persistence.TypedQuery.getResultList()

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery List getResultList() Execute a SELECT query and return the query results as a typed List . Returns: a list of the results, each of type X , or an empty list if there are no results. Throws: IllegalStateException - if called

jakarta.persistence.Graph.getAttributeNodes()

Jakarta Persistence (JPA) Method in jakarta.persistence.Graph List getAttributeNodes() Return the attribute nodes corresponding to the attributes of this managed type that are included in the graph. Returns: list of attribute nodes included in the graph or an empty list if none have been defined. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.concat(List)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression concat (    List expressions ) Create an expression for string concatenation. If the given list of expressions is empty , returns an expression equivalent to literal("") . Parameters: expressions

mapping file is not being loaded

, the Metamodel is empty - none of the entities referenced in the mapping file are present in the Metamodel ... is alwasy empty with ObjectDB Set managedEntities = emf.getMetaModel().getEntities();   I ... -classes to false. The Metamodel API still returns the empty set when 'getEntities()' is invoked