will use that one...thanks Fabio!

On Mar 14, 10:19 am, Fabio Maulo <[email protected]> wrote:
> We know...That implementation was cause of various issues... the
> MsSql2005Dialect on trunk is working.
>
> 2009/3/14 Dhaval <[email protected]>
>
>
>
>
>
> > Hi Ayende,
> >      I am using NHibernate 2.0.1.4000 GA (Sep release) and have
> > uncovered a problem with the Pagination API (SetFirstResult and
> > SetMaxResults) on the IQuery.  We are using MS 2k5 and have been
> > through your blogs on this as well on top query bug that you have
> > blogged about.  Here is a little background on the relationships of
> > the objects.  The Aggregate object that I am querying for has a many-
> > to-one relationship with two other objects...talking more concretely,
> > the InlandLocation aggregate has many-to-one relationship with State
> > and Site objects.  I am performing a simple top query (without
> > restrictions and order-bys)
>
> > Case 1: Mapping many-to-one with fetch="join"
> >    This results in NH firing correct query to the database (because
> > when I execute the top query from within SQL query browser it works
> > fine).  However on the way back there seems some problem and I get
> > System.ArgumentException: The value "System.Object[]" is not of type
> > "CyberLog.Master.Model.InlandLocation.InlandLocation" and cannot be
> > used in this generic collection.
> > Parameter name: value
>
> > and the InnerException as
> > NHibernate.Exceptions.GenericADOException was unhandled by user code
> >  Message="Unable to perform find[SQL: SQL not available]"
> >  Source="NHibernate"
> >  StackTrace:
> >       at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria,
> > IList results)
> >       at NHibernate.Impl.CriteriaImpl.List(IList results)
> >       at NHibernate.Impl.CriteriaImpl.List[T]()
> >       at
> > CyberLog.Core.Repository.Hibernate.HibernatePaginator`1.CreatePage
> > (PageConfig pageConfig, Int32 totalRecords, DetachedCriteria
> > detachedCriteria) in C:\CyberSCM-376\trunk\Core\Repository\Hibernate
> > \HibernatePaginator.cs:line 56
> >       at
> > CyberLog.Core.Repository.Hibernate.HibernatePaginator`1.Paginate
> > (PageConfig pageConfig, DetachedCriteria detachedCriteria) in C:
> > \CyberSCM-376\trunk\Core\Repository\Hibernate
> > \HibernatePaginator.cs:line 33
> >       at
> > CyberLog.Core.Repository.Hibernate.HibernateSearchRepository`1.FindBy
> > (SearchCriteria searchCriteria, PageConfig pageConfig) in C:
> > \CyberSCM-376\trunk\Core\Repository\Hibernate
> > \HibernateSearchRepository.cs:line 51
> >       at CyberLog.Master.Services.InlandLocationService.FindBy
> > (SearchCriteria searchCriteria, PageConfig pageConfig) in C:
> > \CyberSCM-376\trunk\Master\Services\InlandLocationService.cs:line 59
> >       at
>
> > Spring.DynamicReflection.Method_FindBy_cdebfa0a8a0a499eb53d07d5e6f82f57.Inv 
> > oke
> > (Object target, Object[] args)
> >       at Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target,
> > Object[] arguments)
> >       at Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint
> > ()
> >       at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
> >       at Spring.Transaction.Interceptor.TransactionInterceptor.Invoke
> > (IMethodInvocation invocation)
>
> > Case 2: Mapping many-to-one with fetch="select"
> > In this case the query just works fine and all my tests give a green
> > bar.
>
> > Any help to point to correct solution would be appreciated.
>
> > Thanks in advance,
> > Dhaval Dalal
> > PS: Please note that if the bug has already been raised then, then
> > ignore this, however, I searched the NHForge Jira for issue that I
> > faced and found related issues to the one that I have raised.
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to