nhibernate « Batch « JPA Q&A





1. How to delete multiple db entities with Nhibernate?    stackoverflow.com

What is the best practice for this problem? Is there any batching features built-in? Sample code:

using (ITransaction transaction = _session.BeginTransaction())
{
   _session.Delete("FROM myObject o WHERE  o.Id = IN(1,2,...99999)");
  ...

2. NHibernate HQL batch update fails with "specified method not supported" exception    stackoverflow.com

When trying to do an HQL batch update for Order entity, I'm getting the following exception:

   Specified method is not supported.
   at NHibernate.Hql.Ast.ANTLR.PolymorphicQuerySourceDetector.GetClassName(IASTNode querySource)
   at ...