eager-loading
Rails eager loading
HI, I have a Test model, which has_many questions, and Question, which has_many answers... When I make a query for a Test with :include => [:questions, {:questions => :answers}] ActiveRecord makes two[详细]
2022-12-31 04:46 分类:问答Eager loading OneToMany in Hibernate with JPA2
I have a simple @OneToMany between Person and Pet entities: @OneToMany(mappedBy=\"owner\", cascade=CascadeType.ALL, fetch=FetchType.EAGER)[详细]
2022-12-31 02:43 分类:问答Ruby on Rails: :include on a polymorphic association with submodels
When working with a polymorphic association, is it possible to run an include on submodels that are only present in some types?[详细]
2022-12-22 05:46 分类:问答Eager loading for globalize2 translations
i have 2 models - Issue and Answers (issue has many answers) and both have translations with globalize2. Every time i attempting to load Issue with answers via[详细]
2022-12-22 05:11 分类:问答HIbernate FetchMode Join
I have a Parent class with a List of children. I would like to load the Parent by something other than the id e.g. by name...I am using criteria.setFetchMode(\"children\",FetchMode.JOIN);[详细]
2022-12-21 02:03 分类:问答Using Include() with inherited entities
In EF eager loading related entities is easy. But I\'m having difficulties including inherited entities when loading data using table-per-type model.[详细]
2022-12-20 19:58 分类:问答Is it possible to configure NHibernate at runtime setting the loading-technique (eager/lazy) for a collection
Ya 开发者_开发知识库is this possible :) ?You can change the fetch mode per query dynamically.[详细]
2022-12-20 15:16 分类:问答How to eager load in WCF Ria Services/Linq2SQLDomainModel
I have a databound grid at my view (XAML) and the Itemsource points to a ReportsCollection. The Reports entity has three primitives and some complex types. These three are shown as expected at datagri[详细]
2022-12-19 03:57 分类:问答Eager loading a tree in NHibernate
I have a problem trying to load a tree, this is my cas开发者_运维知识库e, I have an entity associated with itself (Hierarchic) with n levels; the question is, Can I load eagerly the entire tree using[详细]
2022-12-19 03:20 分类:问答eager loading association on a subclass
I have the following (simplified) class hierarchy: def Parent < ActiveRecord::Base end def Child < Parent[详细]
2022-12-18 11:01 分类:问答