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
I have a simple @OneToMany between Person and Pet entities: @OneToMany(mappedBy=\"owner\", cascade=CascadeType.ALL, fetch=FetchType.EAGER)
When working with a polymorphic association, is it possible to run an include on submodels that are only present in some types?
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
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);
In EF eager loading related entities is easy. But I\'m having difficulties including inherited entities when loading data using table-per-type model.
Ya 开发者_开发知识库is this possible :) ?You can change the fetch mode per query dynamically.
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
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
I have the following (simplified) class hierarchy: def Parent < ActiveRecord::Base end def Child < Parent