Home » Search

About fetch

51-60 of 200Refresh
JPA Doc
18

javax.persistence.criteria.Root

- intended type of the expression Returns: new expression of the given type Since: JPA 2.0 Fetch fetch(String attributeName) Create a fetch join to the specified attribute using an inner join. Create a fetch join to the specified attribute using an inner join. Parameters: attributeName - name
JPA Doc
18

javax.persistence.criteria.SetJoin

expression of the given type Since: JPA 2.0 Fetch fetch(String attributeName) Create a fetch join to the specified attribute using an inner join. Create a fetch join to the specified attribute using ... : the resulting fetch join Throws: IllegalArgumentException - if attribute of the given name does not
Forum
18

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

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
18

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
18

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
17

Eager Fetch of Map with Entities as Keys

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

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

Setting and Tuning of JPA Queries

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