Internal Website Search
51-100 of 200 resultsFailed 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 | |
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 | |
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 | |
Getting this error when fetching records from mem db.Getting this error when fetching records from mem db. | |
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)   | |
javax.persistence.FetchType Defines 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 | |
javax.persistence.Basic protected String name; Example 2: @Basic( fetch =LAZY) protected String getName() { return name; } Since: JPA 1.0 Public Annotation Attributes FetchType fetch default EAGER (Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched . The EAGER strategy | |
javax.persistence.ManyToMany being cascaded. Since: JPA 1.0 FetchType fetch default LAZY (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 . The LAZY strategy is a hint | |
javax.persistence.ElementCollection(); ... } Since: JPA 2.0 Public Annotation Attributes FetchType fetch default LAZY (Optional) Whether the collection should be lazily loaded or must be eagerly fetched . The EAGER strategy is a requirement on the persistence provider runtime that the collection elements must be eagerly fetched . The LAZY | |
javax.persistence.OneToOne to the target of the association. By default no operations are cascaded. Since: JPA 1.0 FetchType fetch default EAGER (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. Since: JPA | |
javax.persistence.OneToMany FetchType fetch default LAZY (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 . The LAZY strategy is a hint to the persistence provider | |
javax.persistence.ManyToOne no operations are cascaded. Since: JPA 1.0 FetchType fetch default EAGER (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 | |
FetchParent.getFetches() - JPA Method JPA Method in javax.persistence.criteria.FetchParent Set getFetches () Return the fetch joins that have been made from this type. Returns empty set if no fetch joins have been made from this type. Modifications to the set do not affect the query. Return: fetch joins made from this type Since: JPA 2.0 | |
javax.persistence.Lob and character-based types defaults to Blob. Example 1: @Lob @Basic( fetch =LAZY) @Column(name="REPORT") protected String report; Example 2: @Lob @Basic( fetch =LAZY) @Column(name="EMP_PIC | |
javax.jdo.FetchGroup 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 | |
PersistenceManager.retrieveAll(useFetchPlan,pcs) - JDO Method should be retrieved. The fields in the current fetch group must be retrieved, and the implementation might retrieve more fields than the current fetch group. If the useFetchPlan parameter is false ... . If the useFetchPlan parameter is true, and the fetch plan has not been modified from its default setting | |
PersistenceManager.retrieveAll(pcs,useFetchPlan) - JDO Method values should be retrieved. The fields in the current fetch group must be retrieved, and the implementation might retrieve more fields than the current fetch group. If the useFetchPlan parameter is false ... . If the useFetchPlan parameter is true, and the fetch plan has not been modified from its default setting | |
PersistenceManager.retrieveAll(pcs,useFetchPlan) - JDO Method should be retrieved. The fields in the current fetch group must be retrieved, and the implementation might retrieve more fields than the current fetch group. If the useFetchPlan parameter is false ... . If the useFetchPlan parameter is true, and the fetch plan has not been modified from its default setting | |
PersistenceManager.retrieve(pc,useFetchPlan) - JDO Method method without the useFetchPlan parameter. If the useFetchPlan parameter is true, and the fetch plan has not been modified from its default setting, all fields in the current fetch plan are fetched , and other fields might be fetched lazily by the implementation. If the useFetchPlan parameter | |
javax.jdo.annotations.FetchGroup for the fetch group of a class. Corresponds to the xml element " fetch -group". Since: JDO 2.1 Public Annotation Attributes String[] fetchGroups default {} Fetch groups to be nested (included) in this fetch group. Since: JDO 2.1 Persistent [] members default null Members (fields and properties | |
javax.jdo.annotations.FetchPlan for the fetch plan of a persistence manager, query, or extent. Corresponds to the xml element " fetch -plan". Since: JDO 2.1 Public Annotation Attributes String[] fetchGroups default {} The fetch groups in this fetch plan. Since: JDO 2.1 int fetchSize default 0 The number of instances of multi-valued | |
FetchPlan.getFetchSize() - JDO Method JDO Method in javax.jdo.FetchPlan int getFetchSize () Return the fetch size, or FETCH _SIZE_OPTIMAL if not set, or FETCH _SIZE_GREEDY to fetch all. Return: the fetch size Since: JDO 2.0 | |
javax.jdo.PersistenceManagerFactory Methods void addFetchGroups (FetchGroup... groups) Add the FetchGroup s to the set of active fetch ... for the FetchGroup name - the name of the fetch group Return: the FetchGroup Throws: JDOUserException ... () Get a modifiable Set containing a mutable copy of all currently active (in scope) fetch groups. The methods | |
javax.jdo.FetchGroup.DEFAULT. This category includes members defined in the default fetch group in xml or annotations. Redefining the default fetch group via the API does not affect the members defined by this category. Using this category also sets the fetch -depth for the members in the default fetch group. Since: JDO 2.2 | |
FetchPlan.setMaxFetchDepth(fetchDepth) - JDO Method ) Set the maximum fetch depth when fetching . A value of 0 has no meaning and will throw a JDOUserException. A value of -1 means that no limit is placed on fetching . A positive integer will result in that number of references from the initial object to be fetched . Parameters: fetchDepth - the depth Return: the FetchPlan Since: JDO 2.0 | |
FetchPlan.setFetchSize(fetchSize) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan setFetchSize ( int fetchSize ) Set the fetch size for large result set support. Use FETCH _SIZE_OPTIMAL to unset, and FETCH _SIZE_GREEDY to force loading of everything. Parameters: fetchSize - the fetch size Return: the FetchPlan Since: JDO 2.0 | |
PersistenceManager.detachCopyAll(pcs) - JDO Method and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph ... to other persistent instances must either be in the default- fetch -group , or in the current custom FetchPlan | |
FetchPlan.getMaxFetchDepth() - JDO Method JDO Method in javax.jdo.FetchPlan int getMaxFetchDepth () Return the maximum fetch depth used when fetching instances. Return: the maximum fetch depth Since: JDO 2.0 | |
FetchPlan.setGroup(fetchGroupName) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan setGroup ( String fetchGroupName ) Set the active fetch groups to the single named fetch group. Parameters: fetchGroupName - the single fetch group Return: the FetchPlan Since: JDO 2.0 | |
FetchPlan.removeGroup(fetchGroupName) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan removeGroup ( String fetchGroupName ) Remove the fetch group from the set active fetch groups. Return: the FetchPlan Since: JDO 2.0 | |
FetchPlan.addGroup(fetchGroupName) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan addGroup ( String fetchGroupName ) Add the fetch group to the set of active fetch groups. Return: the FetchPlan Since: JDO 2.0 | |
PersistenceManager.getFetchGroup(cls,name) - JDO Method scope of the PersistenceManager, and hides the corresponding fetch group in the PersistenceManagerFactory. Parameters: cls - the class or interface for the FetchGroup name - the name of the fetch group | |
javax.jdo.annotations.Persistent defaultFetchGroup default "" Whether this member is in the default fetch group. Since: JDO 2.1 String ... "" Name of the fetch -group to use when this member is loaded due to being referenced when not | |
PersistenceManager.detachCopyAll(pcs) - JDO Method JDO Method in javax.jdo.PersistenceManager Collection detachCopyAll ( Collection pcs ) Detach the specified instances from the PersistenceManager . The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching | |
PersistenceManager.detachCopy(pc) - JDO Method JDO Method in javax.jdo.PersistenceManager T detachCopy ( T pc ) Detach the specified instance from the PersistenceManager . The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph | |
PersistenceManager.setDetachAllOnCommit(flag) - JDO Method to the fetch plan in effect at commit. Loading fields and unloading fields required by the fetch plan | |
FetchGroup.setRecursionDepth(memberName,recursionDepth) - JDO Method is 1. A value of 0 means don't fetch the member (as if the member were omitted entirely). A value of -1 means fetch all instances reachable via this member. Parameters: memberName - the name | |
javax.jdo.FetchGroup.ALL JDO Static Field in javax.jdo.FetchGroup ALL For use with addCategory and removeCategory calls. This category includes all members in the persistent type. Using this category also sets the fetch -depth for the members in the default fetch group. Since: JDO 2.2 | |
Query.getFetchPlan() - JDO Method JDO Method in javax.jdo.Query FetchPlan getFetchPlan () Returns the FetchPlan used by this Query . Modifications of the returned fetch plan will not cause this query's owning PersistenceManager 's FetchPlan to be modified. Return: the fetch plan used by this query Since: JDO 2.0 | |
javax.jdo.Extent . Since: JDO 1.0 FetchPlan getFetchPlan () Get the fetch plan associated with this Extent. Return: the fetch plan Since: JDO 2.0 PersistenceManager getPersistenceManager () An Extent is managed by | |
javax.jdo.Query the FetchPlan used by this Query . Modifications of the returned fetch plan will not cause this query's owning PersistenceManager 's FetchPlan to be modified. Return: the fetch plan used by this query |