ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.criteria.Fetch

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria. Fetch Type Parameters: - the source type of the fetch - the target type of the fetch Super Interfaces: FetchParent Represents a join- fetched association or attribute. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Fetch

jakarta.persistence.criteria.FetchParent.fetch(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    String attributeName ) Create a fetch join to the specified attribute using an inner join ... fetch join. Throws: IllegalArgumentException - if attribute of the given name does not exist. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.FetchParent.fetch(String,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    String attributeName ,    JoinType jt ) Create a fetch join to the specified ... of the join jt - join type Returns: the resulting fetch join. Throws: IllegalArgumentException

jakarta.persistence.criteria.FetchParent.fetch(SingularAttribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.FetchParent.fetch(SingularAttribute,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    SingularAttribute attribute ,    JoinType jt ) Create a fetch join to the specified ... of the join Returns: the resulting fetch join. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Basic.fetch

Jakarta Persistence (JPA) Method in jakarta.persistence.Basic FetchType fetch (Optional) Whether the value of the field or property should be lazily loaded or must be eagerly fetched . The EAGER ... fetched . The LAZY strategy is a hint to the persistence provider runtime. If not specified

jakarta.persistence.OneToOne.fetch

Jakarta Persistence (JPA) Method in jakarta.persistence.OneToOne FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly fetched

jakarta.persistence.OneToMany.fetch

Jakarta Persistence (JPA) Method in jakarta.persistence.OneToMany FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entities must be eagerly fetched

jakarta.persistence.ManyToOne.fetch

Jakarta Persistence (JPA) Method in jakarta.persistence.ManyToOne FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly fetched

jakarta.persistence.ManyToMany.fetch

Jakarta Persistence (JPA) Method in jakarta.persistence.ManyToMany FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly fetched

jakarta.persistence.criteria.FetchParent.fetch(PluralAttribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    PluralAttribute attribute ) Create a fetch join to the specified collection-valued attribute using an inner join. Parameters: attribute - target of the join Returns: the resulting join. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.FetchParent.fetch(PluralAttribute,JoinType)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.FetchParent Fetch fetch (    PluralAttribute attribute ,    JoinType jt ) Create a fetch join to the specified collection-valued attribute using the given join type. Parameters: jt - join type attribute - target

jakarta.persistence.ElementCollection.fetch

Jakarta Persistence (JPA) Method in jakarta.persistence.ElementCollection FetchType fetch (Optional) Whether the collection should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly fetched

jakarta.persistence.criteria.Fetch.getParent()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Fetch FetchParent getParent() Return the parent of the fetched item. Returns: fetch parent. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Fetch.getAttribute()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Fetch Attribute getAttribute() Return the metamodel attribute corresponding to the fetch join. Returns: metamodel attribute for the join. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Fetch.getJoinType()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Fetch JoinType getJoinType() Return the join type used in the fetch join. Returns: join type. Since: Jakarta Persistence (JPA) 1.0

FROM clause (JPQL / Criteria API)

variant returns Nauru with a NULL value as its capital. [LEFT [OUTER] | INNER] JOIN FETCH JPA support of transparent navigation and fetch  makes it very easy to use, since it provides the illusion ... exactly the same result objects ( Country instances): SELECT c FROM Country c JOIN FETCH c.capital

Retrieving JPA Entity Objects

Eager Fetch Retrieval of an entity object from the database might cause automatic retrieval ... retrieval by using a lazy fetch type: @Entity class Employee { : @ManyToOne ( fetch = FetchType . LAZY ... with the FetchType.LAZY fetch policy is initialized to reference a new managed hollow object (unless the referenced

How do I achieve a Deep Fetch using JOIN FETCH?

of eager fetch in JPQL as follows: SELECT c FROM C JOIN FETCH c.bList WHERE c.id=:id But when I attempt to take it to the 2nd level: SELECT c FROM C JOIN FETCH c.bList JOIN FETCH c.bList.aList WHERE c.id=:id I get an error along the lines of: Invalid fetch path: bList.aList for type C (#element

JPQL JOIN FETCH Error

fetch doi.metadata metadata left join fetch metadata.titles titles left join fetch metadata.creators creators left join fetch metadata.descriptions descriptions left join fetch metadata.publishers publishers left join fetch metadata.contributors contributors left join fetch metadata.dates dates left

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. It was expected to be fetched before closing the em, no ? In fact, that is the objective of the fetch purpose

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities ... this article,join fetch seems to be the right choice. What about ObjectDb ? The implementation is totally different. Is an "All eager strategy" more efficient that many join fetch ( cartesian product + distinct

LEFT JOIN FETCH over empty embedded collection returns no results

First of all, thank you for promptly implementing JOIN FETCH over nested paths in response ... , 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

ObjectDB Object Database Features

optimizations. Configurable JPA eager/lazy fetch  and JPA query FETCH JOIN . Configurable JDO fetch ... JOIN and JOIN FETCH ). WHERE (with both JPQL and JDOQL expressions). GROUP BY (including HAVING

jakarta.persistence.criteria.FetchParent

the parent of Fetches . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta

jakarta.persistence.criteria.PluralJoin

testing for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Inherited from FetchParent Parameters: attribute - target of the join Returns: the resulting fetch join

jakarta.persistence.criteria.MapJoin

for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Inherited from FetchParent Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta

jakarta.persistence.criteria.Root

to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute ... : the resulting fetch join. Since: Jakarta Persistence (JPA) 1.0 Fetch fetch ( SingularAttribute

jakarta.persistence.criteria.SetJoin

for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Inherited from FetchParent Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta

jakarta.persistence.criteria.CollectionJoin

against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner ... fetch join. Since: Jakarta Persistence (JPA) 1.0 Fetch fetch ( SingularAttribute attribute , JoinType

jakarta.persistence.criteria.ListJoin

testing for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using an inner join. Inherited from FetchParent Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta

jakarta.persistence.criteria.From

. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch ... Parameters: attribute - target of the join Returns: the resulting fetch join. Since: Jakarta Persistence (JPA) 1.0 Fetch fetch ( SingularAttribute attribute , JoinType jt ) Create a fetch join to the specified

jakarta.persistence.criteria.Join

to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3.2 Fetch fetch ( SingularAttribute attribute ) Create a fetch join to the specified single-valued attribute using ... : the resulting fetch join. Since: Jakarta Persistence (JPA) 1.0 Fetch fetch ( SingularAttribute attribute

JPA Entity Fields

; @OneToMany ( fetch = FetchType . EAGER ) List field3; } The entity class declaration ... to be thrown on any attempt to store an entity with a null value in that field. Cascade and fetch settings

Setting and Tuning of JPA Queries

. "objectdb.result- fetch " - sets fetch mode for query result as either "EAGER" (the default) or "LAZY

Criteria Query From Elements

and examples. Join Fetch Elements Join Fetch is managed in criteria queries by the following interfaces

JPA Query Structure (JPQL / Criteria)

, multiselect , array , tuple , construct ). Criteria FROM  ( from , join , fetch ). Criteria WHERE  

JPA Queries

elements (representing range variables, join and fetch ): Other criteria query expressions (for all the query clauses):

JPA Annotations for Relationships

annotation enables configuring cascade and fetch policy, using the following enum types: Additional

JPA Criteria API Queries

, multiselect , array , tuple , construct ). FROM clause ( from , join , fetch ). WHERE clause

jakarta.persistence.FetchType

strategies for fetching data from the database. The EAGER strategy is a requirement on the persistence provider runtime that data must be eagerly fetched . The LAZY strategy is a hint to the persistence provider runtime that data should be fetched lazily when it is first accessed. The implementation

jakarta.persistence.Basic

annotation. Example 1: @Basic protected String name; Example 2: @Basic( fetch = LAZY) protected String ... [] and byte[] . Since: Jakarta Persistence (JPA) 1.0 Annotation Elements FetchType fetch (Optional) Whether the value of the field or property should be lazily loaded or must be eagerly fetched

jakarta.persistence.Graph

of an attribute mapped for eager fetching . The effect of this call may be overridden by subsequent ... of an attribute mapped for eager fetching . The effect of this call may be overridden by subsequent ... inclusion of attributes mapped for eager fetching . The effect of this call may be overridden by subsequent

jakarta.persistence.ManyToMany

being cascaded. Default: {} Since: Jakarta Persistence (JPA) 1.0 FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entity must be eagerly fetched . The LAZY strategy

jakarta.persistence.ManyToOne

FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched ... must be eagerly fetched . The LAZY strategy is a hint to the persistence provider runtime. If not

jakarta.persistence.ElementCollection

when defined using generics. Default: void/class Since: Jakarta Persistence (JPA) 1.0 FetchType fetch (Optional) Whether the collection should be lazily loaded or must be eagerly fetched . The EAGER ... must be eagerly fetched . The LAZY strategy is a hint to the persistence provider runtime. If not specified

jakarta.persistence.EntityGraph

graph, this operation suppresses inclusion of an attribute mapped for eager fetching . The effect ... for eager fetching . The effect of this call may be overridden by subsequent invocations of Graph ... suppresses inclusion of attributes mapped for eager fetching . The effect of this call may be overridden

jakarta.persistence.Subgraph

for eager fetching . The effect of this call may be overridden by subsequent invocations of Graph ... suppresses inclusion of an attribute mapped for eager fetching . The effect of this call may be overridden ... is interpreted as a load graph, this operation suppresses inclusion of attributes mapped for eager fetching

jakarta.persistence.OneToOne

default no operations are cascaded. Default: {} Since: Jakarta Persistence (JPA) 1.0 FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER ... fetched . The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults

jakarta.persistence.OneToMany

(JPA) 1.0 FetchType fetch (Optional) Whether the association should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the associated entities must be eagerly fetched . The LAZY strategy is a hint to the persistence provider runtime