Home » Search

About fetch

51-60 of 200Refresh
Forum
16

Failed to write the value of field using reflection (error 363) on LAZY fetch

-fetch", "LAZY");) on the query execution it works. I assume it has to do with the @Transactional ... hints? The Mapping of class Modell and its member: @Entity class Modell { ... @OneToMany(fetch ... .result-fetch", "LAZY");     List entities = query.getResultList(); } Stack Trace Exception in
Forum
16

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

" />) - Either at JPA global level (orm.xml).   For defining fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way to do it at objectdb level or JPA global ... / Eager can only be set locally per relationship, and for some extent also per query (using JOIN FETCH). ouba64
Issue
16

Fetch a whole entity graph eager

but will be supported in future versions. Currently supported: Field level eager fetch. JOIN FETCH queries. JDO fetch groups. Hello, we have still always the problem to get a complex completed eager entity
Forum
15

@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? FetchType.LAZY
Forum
15

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 every relationship. No. There is no such configuration option, since having EAGER as the fetch type
Forum
15

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
Issue
15

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).   Build 2.4.1_06 fixes this issue (fields are now initialized and the test in the forum passes
Issue
15

Eager Fetch of Map with Entities as Keys

{         @Id private long id = 1;         @OneToMany(fetch=FetchType.EAGER)         Map map = new
Forum
15

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();   The following example demonstrates
Forum
15

fetch by enum

I have Entity named Fruits  with a column Type which is a enum. I want to fetch the based on Type  Eg.  Query qry= em.createQuery("Select f from Fruits f where f.Type =: t ");         qry.setParameter("t",Type.Sweet);   But it return a null result list.   It should work. Please provide a minimal