All work
- DB2 Stored Proceedure - Invalid SQL syntax. SQLSTATE=37000NH-2938Resolved issue: NH-2938
- Documentation Error: Section 3.5 - Table 3.2 - transaction.factory_class (with patch)NH-2814Resolved issue: NH-2814
- Cache DefaultExpiration type is "byte"NH-2813Resolved issue: NH-2813
- Some functions in NHibernate IList are not working, if objects are using lazy properties.NH-2810Resolved issue: NH-2810Alex Zaytsev
- Incorrect specification of VARBINARY(MAX) in MsSql2005DialectNH-2809Resolved issue: NH-2809
- Missing overloads for Session.Save/Update/SaveOrUpdateNH-2808Resolved issue: NH-2808Alex Zaytsev
- Enableing each NHibernate.Cfg.Configuration to have its own CollectionTypeFactoryClassNH-2807
- Objects get the wrong Id assigned after insert. (MySql)NH-2802
- InvalidProxyTypeException on mono 2.10 over object.obj_addressNH-2801Resolved issue: NH-2801Patrick Earl
- Provide the CancelQuery() method in IStatelessSessionNH-2799Resolved issue: NH-2799
- The CodeDom BytecodeProviderImpl generated code no longer compiled. Patch included.NH-2798Resolved issue: NH-2798Alex Zaytsev
- Second call to storedprocedure/SQL with different parameter returns wrong resultsNH-2797Resolved issue: NH-2797Patrick Earl
- Invalid query when single filter is used to filter more than one entities (Oracle 11)NH-2796Resolved issue: NH-2796
- Invalid query when single filter is used to filter more than one entities (Oracle 11)NH-2795Resolved issue: NH-2795
- ModelMapper.AfterMapClass event or ClassMapper do not provide any access to HbmClass instanceNH-2794Resolved issue: NH-2794
- Using subselect-fetching when the original Linq/HQL query is rownum-limited generates invalid SQLNH-2793
- Using a named parameter multiple times in a native SQL query results in invalid parameter binding (exception in some drivers)NH-2792Resolved issue: NH-2792Richard Brown
- LazyLoad fails after clearing cache of sessionNH-2791Resolved issue: NH-2791
- Make it possible to do inner join fetching in LinqNH-2790
- LINQ query on byte? simple property fails on MSSQL 2005 (tinyint)NH-2789Resolved issue: NH-2789Alex Zaytsev
- Batcher for MySqlNH-2778Resolved issue: NH-2778Alex Zaytsev
.Cacheable().Fetch() throws 'Exception occurred getter of xxx'
Description
Environment
Attachments
Details
Details
Assignee
Reporter
Components
Fix versions
Affects versions
Priority
Who's Looking?
Activity
Fabio Maulo July 30, 2011 at 2:10 PM
Closed after final release of NH3.2.0GA
Patrick Earl April 11, 2011 at 8:32 PM
The rabbit hole goes deep on this one. It's fundamentally related to complications between result transformers and caching. This is apparently fixed in Hibernate 4.0, but it looks like there would be a substantial amount of work to figure out exactly what and how to port. Because fetching can create duplicate rows, Linq adds a distinct result transformer. I'll think more on this.
Patrick Earl April 11, 2011 at 1:04 PM
Unfortunately I already have a failing test case based on your earlier code. At the moment it's not clear to me what's going on. The result transformer hint on the mailing list is interesting though. I'm naturally happy to have any hints or insights anyone can provide. I can't promise I'll be able to fix this quickly, but I can say that I'll be looking at it as time permits.
Eduardo Segura April 11, 2011 at 12:41 PM
And on my birthday, no less! .
By the way, Patrick, I can code a 'proper' NHibernate test if that would help (and given that this issue has now 21 votes.)
Let me know. I'll be happy to help. And thanks for looking into this.
Luis Fernando April 11, 2011 at 12:22 PM
Great news, it's good to know that the developers listen to the community.
Thank you guys.
This query:
IList<ParentObject> pos = session.Query<ParentObject>().Cacheable().Fetch(po => po.ChildObjects).ToList();
throws this exception:
NHibernate.PropertyAccessException: Exception occurred getter of CacheableFetchTest.Entity`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Id ---> System.Reflection.TargetException: Object does not match target type..
For a detailed discussion, including full exception stacks, please see:
http://groups.google.com/group/nhusers/browse_thread/thread/dfdbe987d8450b0a/cb812c856e07ee0a