nHibernate batch insert doesn't work with associations? -
I am trying to get more information about how nHibernate decides how to insert multiple together . Obviously this works only if you do not have a simple list of the same type of items, there are no children's objects.
In my application, I have multiple relation between A, B, and three tables, there are many B in C, there are many in B. I am using a native generator for AK ID, but for B and C, I am using composer keys only, which is assigned to the code, so nHibernate can only inserts. These are working fine, and I can save all the objects properly.
The problem is that the nHibernate does not seem sufficient enough, so all b in the batch, and finally all the c in the batch. Right now, it only tries to object b of C, if there are many.
Is this sound correct? Is there any way to change this behavior?
My application has to add hundreds of objects A, B and C at the same time, and doing one after another is a big functionality problem.
If anyone needs any help, nHibernate actually batch objects inserted into different trees In my application, I modified the object structure to please Neighbornet.
Comments
Post a Comment