Re: [nhusers] Re: How to query on non-NHibernate mapped columns but return NHibernate objects???

2011-08-17 Thread 徐佶辉
Hi Plen, Try IQuery iq = querySession.CreateQuery(select src from RptDocumentBase src where src.RptDocumentCore in (select srcc.DocCoreId from RptDocumentCore srcc where contains(srcc.Body, 'florida')0) this should return a List of RptocumentBase object. On Wed, Aug 17, 2011 at 1:18 AM, PLen

[nhusers] Prepared SQL has invalid column name error

2011-08-17 Thread Kaitlin Smith
Hi, When initializing a collection, the prepared SQL that NH generates comes back with an error saying System.Data.SqlClient.SqlException: Invalid column name 'StructuredAddrsDistrict'. However, the prepared SQL does not contain StructuredAddrsDistrict anywhere in the SQL dump, it's always

[nhusers] Re: how to do a classmapping (nh3.2) and a many_to_many set

2011-08-17 Thread José F . Romaniello
ike, for me it seems that with your fluent code you are trying to map a Dictionary instead of a plain collection... something like this should work: mapper.ClassYourClass(map = map.Set(p = p.CurrentlyReading, set = set.Cascade(Cascade.All),

[nhusers] Re: why burrow is not updated from past two year

2011-08-17 Thread Nexus
Apparantly the owner of the burrow project is no longer maintaining it, and according to blog he has gone ruby (kailuowang) -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to nhusers@googlegroups.com. To unsubscribe

[nhusers] Re: Prepared SQL has invalid column name error

2011-08-17 Thread Darren Kopp
are you perhaps using a view or stored procedure? -- 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/-/IB94rgbKq6gJ. To post to this group, send email to

[nhusers] Does ISession.Enlist(IDbCommand) Invalidate 1/2 Level Cache

2011-08-17 Thread SirSirAaron
At the moment, my application uses parameterized-dynamic SQL however I am considering making the switch to NHibernate. I don't have time to convert the existing dynamic SQL to NHibernate. If I use ISession's ability to enlist a IDbCommand will it invalidate NHibernate's 1/2 level cache or does

[nhusers] LockMode.FORCE with generated Version

2011-08-17 Thread Hendry Luk
Is there any plan for it to be supported? Currently it throws LockMode.Force is currently not supported for generated version properties. I can't see any technical reason why NH can't do it. One way I can think NH can do it is to issue the following sql: update entity set id = id where