Home » Search

About fetch

51-60 of 200Refresh
Forum
17

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
17

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. btc_es
Forum
17

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
Forum
16

@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
16

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
16

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
16

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
16

Eager Fetch of Map with Entities as Keys

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

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
Manual
14

JPA Entity Fields

=CascadeType.ALL) MyEntity field2; @OneToMany(fetch=FetchType.EAGER) List field3 ... that field. Cascade and fetch settings are explained in chapter 3. A persistent field whose type