ObjectDB Database Search

1-50 of 200 results

FROM clause (JPQL / Criteria API)

implicit INNER JOIN variables. LEFT [ OUTER ] JOIN To understand the purpose of OUTER JOIN , consider ... FROM Country c LEFT OUTER JOIN c.capital p The OUTER keyword is optional ( LEFT OUTER JOIN is equivalent to LEFT JOIN ). When using OUTER JOIN , if a specific outer variable does not have any matching

Possible issue for JPQL "LEFT [OUTER] JOIN"

Possible issue for JPQL " LEFT [ OUTER ] JOIN " is doing "[INNER] JOIN ".   Thanks. eurojet P. F ... ;   - "SELECT a,b FROM A a LEFT OUTER JOIN a.listB b WHERE b IS NULL" where the output ... -valued field.     - "SELECT a,b FROM A a LEFT OUTER JOIN a.listB b WHERE b.id IS NULL

LEFT (OUTER) JOIN problem when mappedBy is defined

this query: "SELECT i FROM Invoice i LEFT OUTER JOIN i.itemList items" But this query never returns ... (); Query query = em.createQuery( "SELECT i FROM Invoice i LEFT OUTER JOIN i.itemList items"); List ... , LEFT JOIN works correctly. Is this normal behaviour? Thank you Michael   Sample application public

ObjectDB Object Database Features

, max) - for paging. Query Structure SELECT (including NEW ). FROM (including INNER JOIN , LEFT OUTER ... ( composite ) indices. Collection and array elements are indexable (extremely fast JOIN queries ... optimizations. Configurable JPA eager/lazy fetch  and JPA query FETCH JOIN . Configurable JDO fetch

Query in JPA2 with LEFT JOIN on INNER JOIN

How write a query in JPA2 with LEFT JOIN on INNER JOIN ? select a.description, a.id, p1.description, p2.description,p3.description from action a left join action_profile ap1 on ap1.id_action=a.id inner join profile p1 on ap1.id_profile=p1.id and p1.name='?' left join action_profile ap2 on ap2.id

Left join fetch behaviour doesn't retrieve children?

Hello, I'm a little bit confused about a left join fetch behaviour. In this test case, i try to fetch my 3 children using a left join fetch. But my collection is null after closing the em ... ();         // Try to retrieve parent and children using left join fetch

LEFT JOIN FETCH over empty embedded collection returns no results

, but I attempt to LEFT JOIN FETCH all the members of a collection within a (non-existent) member ... works (returns my instance of C): SELECT c FROM C c LEFT JOIN FETCH c.bList WHERE id=:id; But if I include the full nested fetch, it fails, returning an empty result list: SELECT c FROM C c LEFT JOIN

multiple LEFT JOINs do not work as expected

looks like this: SELECT DISTINCT $1 FROM Organisation $1 JOIN $1.attributeList $2 LEFT JOIN $1.parentOrg $3 LEFT JOIN $3.parentOrg $4 WHERE ((($2.name='Attribute1') AND ($2.valueAsString='1')) AND (($3.organisationId='root') OR ($4.organisationId='root'))) As I understand, since I use LEFT Joins

EnumConstRef jakarta.persistence.criteria.JoinType.LEFT

JPA Enum Constant in jakarta.persistence.criteria.JoinType LEFT Left outer join . Since: JPA 2.0

LazyInitialization / join fetch

descrica2_2_3_ from the User usuario0_ left outer join on area area1_ usuario0_.codigo_area = area1_.codigo left outer join on User usuario2_ usuario0_.codigo_chefe = usuario2_.codigo left outer join company empresa3_ on usuario2_.codigo_empresa = empresa3_.codigo left outer join on specialty especialid4

Database Explorer

database automatically. Tabbed Windows Three tabbed windows are displayed on the left ... The [Query]  window on the left side enables execution of JPQL and JDOQL queries. To execute a query ... Explorer components. Select one or more elements on the left side and then use the combo boxes

CriteriaBuilder.left(x,len) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression left (    Expression  x,    int len ) Create an expression for the leftmost substring of a string, Parameters: x - string expression len - length of the substring to return Return: expression for the leftmost substring Since: JPA 2.0

CriteriaBuilder.left(x,len) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression left (    Expression  x,     Expression  len ) Create an expression for the leftmost substring of a string, Parameters: x - string expression len - length of the substring to return Return: expression for the leftmost substring Since: JPA 2.0

CriteriaBuilder.union(left,right) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect union (    CriteriaSelect   left ,     CriteriaSelect  right ) Create a query which is the union of the given queries. Return: a new criteria query which returns the union of the results of the given queries Since: JPA 3.2

CriteriaBuilder.exceptAll(left,right) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect exceptAll (    CriteriaSelect   left ,     CriteriaSelect  right ) Create a query by (setwise) subtraction of the second query from the first query, without elimination of duplicate results

CriteriaBuilder.intersect(left,right) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect intersect (    CriteriaSelect   left ,     CriteriaSelect  right ) Create a query which is the intersection of the given queries. Return: a new criteria query which returns the intersection of the results of the given queries Since: JPA 3.2

CriteriaBuilder.unionAll(left,right) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect unionAll (    CriteriaSelect   left ,     CriteriaSelect  right ) Create a query which is the union of the given queries, without elimination of duplicate results. Return: a new criteria

CriteriaBuilder.except(left,right) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect except (    CriteriaSelect   left ,     CriteriaSelect  right ) Create a query by (setwise) subtraction of the second query from the first query. Return: a new criteria query which returns

CriteriaBuilder.intersectAll(left,right) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect intersectAll (    CriteriaSelect   left ,     CriteriaSelect  right ) Create a query which is the intersection of the given queries, without elimination of duplicate results. Return: a new

InterfaceRef jakarta.persistence.criteria.Join

JPA Interface Join Type Parameters: - the source type of the join - the target type of the join Super Interfaces: Expression , FetchParent , From , Path A join to an entity, embeddable, or basic type. Since: JPA 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Join . Public

EnumRef jakarta.persistence.criteria.JoinType

. Since: JPA 2.0 Enum Constants INNER Inner join . Since: JPA 2.0 LEFT Left outer join . Since: JPA 2.0 RIGHT Right outer join . Since: JPA 2.0 Public Static Enum Methods: Method inherited from class java ... .JoinType Defines the three varieties of join . Support for RIGHT outer joins is not required

Paths and Types in JPQL and Criteria API

the equivalent JOIN query. Entity Type Expressions The TYPE operator (which is new in JPA 2) returns the type ... its subinterfaces ( From , Root , Join and Join 's descendants). Path Expressions The Root and Join interfaces ... Variable Paths: Root country = query. from (Country.class); Join neighborCountry = country. join

From.join(attribute,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (    SingularAttribute  attribute,     JoinType  jt ) Create a join to the specified single-valued attribute using the given join type. Parameters: attribute - target of the join jt - join type Return: the resulting join Since: JPA 2.0

CriteriaBuilder.treat(join,type) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Join treat (    Join   join ,    Class  type ) Downcast Join object to the specified type. Parameters: join - Join object type - type to be downcast to Return: Join object of the specified type Since: JPA 2.1

From.join(attributeName,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (   String attributeName,     JoinType  jt ) Create a join to the specified attribute using the given join type. Parameters: attributeName - name of the attribute for the target of the join jt - join type

From.join(entity,joinType) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (    EntityType  entity,     JoinType  joinType ) Create and add a join to the given entity. Parameters: entity - metamodel entity representing the join target joinType - join type Return: the resulting join Since: JPA 3.2

From.join(map,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From MapJoin join (    MapAttribute  map,     JoinType  jt ) Create a join to the specified Map-valued attribute using the given join type. Parameters: map - target of the join jt - join type Return: the resulting join Since: JPA 2.0

From.join(set,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From SetJoin join (    SetAttribute  set,     JoinType  jt ) Create a join to the specified Set-valued attribute using the given join type. Parameters: set - target of the join jt - join type Return: the resulting join Since: JPA 2.0

From.join(list,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From ListJoin join (    ListAttribute  list,     JoinType  jt ) Create a join to the specified List-valued attribute using the given join type. Parameters: list - target of the join jt - join type Return: the resulting join Since: JPA 2.0

From.join(collection,jt) - JPA Method

JPA Method in jakarta.persistence.criteria.From CollectionJoin join (    CollectionAttribute  collection,     JoinType  jt ) Create a join to the specified Collection-valued attribute using the given join type. Parameters: collection - target of the join jt - join type Return: the resulting join Since: JPA 2.0

From.join(attribute) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (    SingularAttribute  attribute ) Create an inner join to the specified single-valued attribute. Parameters: attribute - target of the join Return: the resulting join Since: JPA 2.0

From.join(entityClass,joinType) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (   Class  entityClass,     JoinType  joinType ) Create and add a join to the given entity. Parameters: entityClass - the target entity class joinType - join type Return: the resulting join Since: JPA 3.2

From.join(entity) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (    EntityType  entity ) Create and add an inner join to the given entity. Parameters: entity - metamodel entity representing the join target Return: the resulting join Since: JPA 3.2

Join.on(restrictions) - JPA Method

JPA Method in jakarta.persistence.criteria. Join Join on (   Predicate... restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restrictions - zero or

Join.on(restriction) - JPA Method

JPA Method in jakarta.persistence.criteria. Join Join on (    Expression  restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. Parameters: restriction - a simple or

From.join(attributeName) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (   String attributeName ) Create an inner join to the specified attribute. Parameters: attributeName - name of the attribute for the target of the join Return: the resulting join Throws: IllegalArgumentException - if attribute of the given name does not exist Since: JPA 2.0

From.join(set) - JPA Method

JPA Method in jakarta.persistence.criteria.From SetJoin join (    SetAttribute  set ) Create an inner join to the specified Set-valued attribute. Parameters: set - target of the join Return: the resulting join Since: JPA 2.0

From.join(collection) - JPA Method

JPA Method in jakarta.persistence.criteria.From CollectionJoin join (    CollectionAttribute  collection ) Create an inner join to the specified Collection-valued attribute. Parameters: collection - target of the join Return: the resulting join Since: JPA 2.0

From.join(entityClass) - JPA Method

JPA Method in jakarta.persistence.criteria.From Join join (   Class  entityClass ) Create and add an inner join to the given entity. Parameters: entityClass - the target entity class Return: the resulting join Since: JPA 3.2

From.join(list) - JPA Method

JPA Method in jakarta.persistence.criteria.From ListJoin join (    ListAttribute  list ) Create an inner join to the specified List-valued attribute. Parameters: list - target of the join Return: the resulting join Since: JPA 2.0

From.join(map) - JPA Method

JPA Method in jakarta.persistence.criteria.From MapJoin join (    MapAttribute  map ) Create an inner join to the specified Map-valued attribute. Parameters: map - target of the join Return: the resulting join Since: JPA 2.0

Join.getAttribute() - JPA Method

JPA Method in jakarta.persistence.criteria. Join Attribute getAttribute () Return the metamodel attribute representing the join target, if any, or null if the target of the join is an entity type. Return: metamodel attribute or null Since: JPA 2.0

Join.getParent() - JPA Method

JPA Method in jakarta.persistence.criteria. Join From getParent () Return the parent of the join . Return: join parent Since: JPA 2.0

Join.getJoinType() - JPA Method

JPA Method in jakarta.persistence.criteria. Join JoinType getJoinType () Return the join type. Return: join type Since: JPA 2.0

CriteriaBuilder.treat(join,type) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder MapJoin treat (    MapJoin   join ,    Class  type ) Downcast MapJoin object to the specified type. Parameters: join - MapJoin object type - type to be downcast to Return: MapJoin object of the specified type Since: JPA 2.1

CriteriaBuilder.treat(join,type) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder ListJoin treat (    ListJoin   join ,    Class  type ) Downcast ListJoin object to the specified type. Parameters: join - ListJoin object type - type to be downcast to Return: ListJoin object of the specified type Since: JPA 2.1

Join.getOn() - JPA Method

JPA Method in jakarta.persistence.criteria. Join Predicate getOn () Return the predicate that corresponds to the ON restriction(s) on the join , or null if no ON condition has been specified. Return: the ON restriction predicate Since: JPA 2.1

CriteriaBuilder.treat(join,type) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder SetJoin treat (    SetJoin   join ,    Class  type ) Downcast SetJoin object to the specified type. Parameters: join - SetJoin object type - type to be downcast to Return: SetJoin object of the specified type Since: JPA 2.1

CriteriaBuilder.treat(join,type) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder CollectionJoin treat (    CollectionJoin   join ,    Class  type ) Downcast CollectionJoin object to the specified type. Parameters: join - CollectionJoin object type - type to be downcast to Return: CollectionJoin object of the specified type Since: JPA 2.1

EnumConstRef jakarta.persistence.InheritanceType.JOINED

JPA Enum Constant in jakarta.persistence.InheritanceType JOINED A table for each abstract or concrete entity class, with only the columns mapped to persistent fields and properties declared by ... across multiple table rows. A join is used to retrieve the state of such entities. Since: JPA 1.0