About fetch

forum_thread

Puzzler: Not getting cascades on read from Spring context

I've determined that the database is correctly initialized, looking at it from the Object Explorer, I can run the code that loads the database in a Junit test and it's initializing the children objects correctly, but in the application running in Jetty with Spring, fetching is not cascading. My best guess is that perhaps I have something misconfigured in my persistence.xml or my context.    -dh #1 2012-10-24 01:42 I've determined that the database is correctly initialized, looking at it from the Object Explorer, I can run ...

 
forum_thread

can't get HashMap out of the database

I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is always empty when I get the entity out of the database again. I've reproduced this problem in a simple variation of the Guestbook tutorial: Guest class: ===================== ... Try annotating the map with @OneToMany(fetch=FetchType.EAGER). Outside the DAO method only fields that have ... Date signingDate ; @ OneToMany ( fetch = FetchType . EAGER , cascade = CascadeType . ...

 
release

2.2.3

... JavaDoc Reference Page...  (for setting eager fetch of non entity collections, such as List<String> ). Improved performance of eager fetch in queries. Added Maven build enhancement to the ...

 
forum_thread

PostUpdate collection null

Hello, I have an entity MyEntity with a collection attribute myCollection. I have an EntityListener on MyEntity with a @PostUpdate method. When I try to access myCollection from the PostUpdate method, this collection is null. If I try to access the collection from the PreUpdate method, the collection is populated. The collection is eagerly fetched. public class MyEntity {     @OneToMany(fetch=FetchType.EAGER)     private ArrayList<OtherEntity> myCollection = new ArrayList<OtherEntity>(); ... class MyEntity {     @OneToMany(fetch=FetchType.EAGER)     private ... id ;   @ OneToMany ( fetch = FetchType . EAGER , cascade = CascadeType . ...

 
forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. ... It should be load lazy but i dont know why the query fetch all the Data. @ PostConstruct public void init ... = true , mappedBy = "project" , fetch = FetchType . LAZY ) private ... = true , mappedBy = "project" , fetch = FetchType . LAZY ) private ...

 
api-jdo

getFetchSize()

Return the fetch size, or FETCH_SIZE_OPTIMAL if not set, or FETCH_SIZE_GREEDY to fetch all.(Method of javax.jdo.FetchPlan)

 
api-jdo

javax.jdo.annotations.Query

Annotation for a named query.(Annotation of JDO)

 
api-jdo

FetchPlan.fetchGroups

The fetch groups in this fetch plan.(Annotation Element of javax.jdo.annotations.FetchPlan)

 
api-jdo

javax.jdo.annotations.FetchPlans

Annotation for a group of FetchPlan objects(Annotation of JDO)

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... @ Id @ ManyToOne ( fetch = FetchType . EAGER , cascade = CascadeType . ...   // @Id @ ManyToOne ( fetch = FetchType . EAGER ) public AbstractParent ...