I added generic="true" and I still get the same message. The stacktrace looks like this. I tried to execute the query in my sql console. It seems fine.
- InnerException {"could not initialize a collection: [Entity.Jobseeker.AppliedJobs#268170][SQL: SELECT appliedjob0_.jobseekerid as jobseekerid__2_, appliedjob0_.ID as ID2_, appliedjob0_.ID as ID27_1_, appliedjob0_.jobid as jobid27_1_, appliedjob0_.jobseekerid as jobseekerid27_1_, job1_.jobid as jobid5_0_, job1_.jobtitle as jobtitle5_0_ FROM application appliedjob0_ inner join job job1_ on appliedjob0_.jobid=job1_.recid WHERE appliedjob0_.jobseekerid=? ORDER BY appliedjob0_.`When` Desc]"} NHibernate.ADOException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
+ InnerException {"No implementation of generic set with ordering"} System.Exception {System.NotImplementedException}
Message "could not initialize a collection: [Entity.Jobseeker.AppliedJobs#268170][SQL: SELECT appliedjob0_.jobseekerid as jobseekerid__2_, appliedjob0_.ID as ID2_, appliedjob0_.ID as ID27_1_, appliedjob0_.jobid as jobid27_1_, appliedjob0_.jobseekerid as jobseekerid27_1_, job1_.jobid as jobid5_0_, job1_.jobtitle as jobtitle5_0_ FROM application appliedjob0_ inner join job job1_ on appliedjob0_.jobid=job1_.recid WHERE appliedjob0_.jobseekerid=? ORDER BY appliedjob0_.`When` Desc]" string
Source "NHibernate" string
StackTrace " at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type)\r\n at NHibernate.Loader.Collection.CollectionLoader.Initialize(Object id, ISessionImplementor session)\r\n at NHibernate.Persister.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session)\r\n at NHibernate.Impl.SessionImpl.InitializeCollection(IPersistentCollection collection, Boolean writing)\r\n at NHibernate.Collection.AbstractPersistentCollection.Initialize(Boolean writing)" string
+ TargetSite {Void LoadCollection(NHibernate.Engine.ISessionImplementor, System.Object, NHibernate.Type.IType)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+ Static members
Stacktrace in InnerException:
+ [System.NotImplementedException] {"No implementation of generic set with ordering"} System.NotImplementedException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
+ InnerException null System.Exception
Message "No implementation of generic set with ordering" string
Source "NHibernate" string
StackTrace " at NHibernate.Collection.Generic.PersistentGenericSet`1.BeforeInitialize(ICollectionPersister persister)\r\n at NHibernate.Impl.SessionImpl.GetLoadingCollection(ICollectionPersister persister, Object id, Object resultSetId)\r\n at NHibernate.Loader.Loader.HandleEmptyCollections(Object[] keys, Object resultSetId, ISessionImplementor session)\r\n at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)\r\n at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)\r\n at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type)" string
+ TargetSite {Void BeforeInitialize(NHibernate.Persister.Collection.ICollectionPersister)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
|