Addition in List Collection #2774
Unanswered
anantupadhyay5786
asked this question in
Q&A
Replies: 1 comment
-
It sound to me there is some misunderstanding about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are trying to use list collection in our project.
Sample code used in .hbm is as follows for Department.hbm.xml :
For employee.hbm.xml :
The issue is during Add of a record in list, eager loading is happening on list collection in nHibernate code due to below code:
protected bool IsOperationQueueEnabled
{
get { return !initialized && IsConnectedToSession && IsInverseCollection; }
}
indexed collection will not use inverse="true", therefore for us this flag is false. Hence eager load. Therefore , We want to know, the role of IsInverseCollection flag in function IsOperationQueueEnabled. Moreover , We are taking care of inverse from many-to-one side as well. Is it still needed for List collection to be loaded in-memory before any add operation ?
Beta Was this translation helpful? Give feedback.
All reactions