ObjectDB Database Search

1-50 of 179 results

JPA Fetch Plan Graphs

the hierarchy and scope of your fetch plans: The root interface for defining a fetch plan. An EntityGraph serves as a template for a query or find operation, allowing you to override the default fetch strategies ... for defining fetch plans of related entities or embeddables. It enables fine-grained control over deep

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

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

FROM clause (JPQL / Criteria API)

, the OUTER JOIN variant returns Nauru with a NULL value as its capital. [LEFT [OUTER] | INNER] JOIN FETCH JPA support for transparent navigation and fetching is convenient because it provides the illusion ... FROM Country c JOIN FETCH c.capital The JOIN FETCH expression is not a regular JOIN , and it does not

Retrieving JPA Entities

a relationship on another entity. Retrieval by eager fetch Retrieval of Retrieving an entity from the database ... from this automatic cascaded retrieval by specifying a lazy fetch type: @Entity class Employee { : @ManyToOne ( fetch = FetchType . LAZY ) private Employee manager; : } The default for non-collection

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

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

How to use JOIN FETCH?

of using JOIN FETCH to avoid excessive round trips to the database: SELECT c FROM Country c JOIN FETCH c ... , then I get the correct addresses (obviously fetched lazily), but still 2 results.  What should I be doing to get what I want out of this query? Note that I need to get the fetch mode specified in

Problem with @Basic(fetch = FetchType.LAZY)

I have a class where two fields are annotated with  @Basic( fetch = FetchType.LAZY ... (swing app). Yet they don't seem to be fetched lazily. This class should hopefully demonstrate the problem: import javax.persistence.*; @Entity public class Sample { private String title; @Basic( fetch

Fetching Collections Puzzle

declare explicitly the fetch strategy for "children" as FetchType.Eager, then how can I retrieve the Nodes ... ;colletions are to be lazy fetched . You can try this in a query.  "select n from Node n left outer join fetch n.children where ....." this will also fetch your collection. Basically you can use

Global way to set Lazy-loading fetch functionality for all the fields

fetch policy, I know the local way to do it (@ManyToOne( fetch =FetchType.LAZY)). Is there any way ... per relationship, and for some extent also per query (using JOIN FETCH ). support Support

2.4.7 Fetch

am noticing in 2.4.7 that ' fetch ' cannot be added to objectdb.conf so, wondering how to enable 'eager' fetching of collections ?   Dave   dmoshal David Moshal The question is unclear. Is it something new or different in version 2.4.7? Eager fetching has always been set by annotations or

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in ... as the fetch type of all relationships may cause loading the entire database into memory

LazyInitialization / join fetch

the fetch join? If so should I do to all fields of List , ie OneToMany or should also be done for joins ? Grateful. This may be occurring due to not doing the fetch join? If so should I

@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed

Hello. I have a class Thing that contains OneToMany list of classes Photo. Photo contains  @Lob @Basic( fetch = FetchType.LAZY) private byte[] content; And after some queries with Thing ... of the photos despite of using  fetch = FetchType.LAZY. How can I fix this memory issue? Vladiator

objectdb got hang after fetch some record.

All of my client threads are got hang after doing some fetch operations due to objectdb. Stack trace: java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(SocketInputStream.java:116) java.net.SocketInputStream.read(SocketInputStream.java:171) java.net

What is the query to fetch all schema list of my database?

Can you please tell me how to fetch all schema available in my database? Deepak_1996 Deepak Kumar Maharana You can use the JPA metamodel API . support Support

Fetch Set from DB only works on debug mode

I have a class A, that contains a LinkedHashSet of  another class named B. When I try to fetch that hash set, it returns a null pointer. BUT, when I run the program in debug mode, it works fine!! So I'm almost sure it is a bug? Or maybe something I'm doing wrong? Here is a test class

Mapped By Fetch is very Slow

, go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch . So my performance

Entity has be persistended,but query not fetched?

I create a new entity T newT and persistend it,then I create a query "select t from T t" to fetch all T entities.But  then the newT is not contain in the query result. Why? code order: query.setFlushMode(FlushModeType.AUTO); query.getResultList();   maozf maozf The following example

Getting this error when fetching records from mem db.

Getting this error when fetching records from mem db.

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. Since: Jakarta

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 jt

JPA Entity Fields

. ALL ) MyEntity field2; @OneToMany ( fetch = FetchType . EAGER ) List field3; } The preceding entity class ... an exception if you try to store an entity with a null value in that field. Cascade and fetch settings

Setting and Tuning of JPA Queries

with ObjectDB. "objectdb.result- fetch " - Sets the fetch mode for the query result to either "EAGER" (the default

JPA Attributes Annotations

Jakarta Persistence (JPA) annotations define how entity attributes (fields and properties) are managed. These annotations control data persistence behavior, including fetching strategies ... , wrappers, Strings). While optional for supported types, it allows configuration of fetch strategies

JPA Named Queries Annotations

, cache usage, or fetch graphs. For details and examples, see the JPA Named Queries section

JPA Query Structure (JPQL / Criteria)

( select , distinct , multiselect , array , tuple , construct ) Criteria FROM ( from , join , fetch

JPA Extended API Reference Guide

dynamically, build type-safe queries, and optimize database fetching . Lists additional dynamic

JPA Queries

clause, representing roots, joins, and fetches . General expressions used within query logic, such as

JPA Core Types

attributes, and access entity content not yet fetched due to lazy loading. Provides an API for programmatic

JPA Metamodel and Graphs

The API supports the definition of fetch graphs to optimize data loading strategies at runtime

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

, 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 by

Fetch a whole entity graph eager

 eager fetch . JOIN FETCH queries . JDO fetch groups . support Support Hello

Mapped by fields are not initialized by JOIN FETCH in queries

As demonstrated in this forum thread , a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support   Build 2.4.1_06 fixes this issue (fields are now initialized

Eager Fetch of Map with Entities as Keys

id = 1;         @OneToMany( fetch =FetchType.EAGER)   

jakarta.persistence.Lob

it defaults to CLOB ; for all other types it defaults to BLOB . Example 1: @Lob @Basic( fetch = LAZY) @Column(name = "REPORT") protected String report; Example 2: @Lob @Basic( fetch = LAZY) @Column(name

jakarta.persistence.EntityManager

class with the given primary key, whose state may be lazily fetched . If the requested instance does ... of the given object, with the same primary key as the given object, whose state may be lazily fetched

jakarta.persistence.NamedEntityGraph

fetched when an operation which retrieves an instance or instances of the root entity is executed