About fetch

61-70 of 200Refresh
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
Forum
15

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 that shows
Manual
13

Setting and Tuning of JPA Queries

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

Criteria Query From Elements

Fetch Elements Join Fetch is managed in criteria queries by the following interfaces: See the FROM in Criteria Queries section for more details and an example.
Manual
13

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
JDO Doc
11

javax.jdo.FetchGroup

javax.jdo Interface FetchGroup FetchGroup represents a named fetch group for a specific class or interface. A fetch group instance identifies the name of the class or interface, the list of members (fields or properties) to be fetched when the fetch group is active, and the recursion depth for each
JDO Doc
10

javax.jdo.annotations.FetchGroup

javax.jdo.annotations Annotation FetchGroup Target: Classes Annotation for the fetch group of a class. Corresponds to the xml element "fetch-group". Since: JDO 2.1 String[] fetchGroups Fetch groups to be nested (included) in this fetch group. Fetch groups to be nested (included) in this fetch group
JDO Doc
10

javax.jdo.annotations.FetchPlan

javax.jdo.annotations Annotation FetchPlan Target: Classes Annotation for the fetch plan of a persistence manager, query, or extent. Corresponds to the xml element "fetch-plan". Since: JDO 2.1 String[] fetchGroups The fetch groups in this fetch plan. The fetch groups in this fetch plan. Returns
Manual
9

JPA Criteria API Queries

, construct). FROM clause (from, join, fetch). WHERE clause (where). GROUP BY / HAVING clauses (groupBy
JPA Doc
9

JPA Queries

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