My gut feeling would be that I highly doubt it if you want to stay stateless. The idea of stateless sessions is very lightweight sessions that don't have tracking (they don't have very much of anything, to the point of being a little difficult to use if you're used to regular sessions) - this is why they are faster- less stuff to manage. Stateless sessions tend to be much more manual to work with for this reason. Honestly, I personally find the only reason to use them is for speed/memory issues in targeted hot spots of an application, and if you are hitting those kinds of problems, you should also at least consider the possibility of optimizing those specific operations by yanking them out of NHibernate entirely and into raw sql-it'll be much, much faster at really big bulk operations than NHibernate can ever be.
On Wed, Jun 13, 2012 at 1:00 AM, pvginkel <[email protected]> wrote: > I've implemented the example from chapter 21.4 from the reference > documentation (see > http://nhforge.org/doc/nh/en/index.html#example-parentchild-update) which > explains how you can track whether an entity is transient by implementing > an interceptor. However, stateless sessions don't go through interceptors, > so this doesn't work for entities that are loaded through a stateless > session. > > Is there a work around/solution to this problem? > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/nhusers/-/tW5MSHa_Yn8J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
