Re: [nhusers] Anything wrong with this HQL statement?

2010-12-10 Thread Aaron Boxer
Here are the last few lines of the exception stack trace: NHibernate.Hql.Ast.ANTLR.HqlParser.RecoverFromMismatchedToken(Antlr.Runtime .IIntStream input = {selectdistinctfmfromReceivedFaxfjoinf.ReceivingFaxMachinefmwherefm.Deactiv ated=:deactivatedandf.Statusin(:new,:detached)}, int ttype = 123, A

[nhusers] Re: Linq, Contains, and Generic IEqualityComparer

2010-12-10 Thread João Bragança
This is not possible. Once the expression tree parser hits a method call - in this case IEqualityComparer.Equals - it stops. Try doing a multiline statement in queryable.Where(), build your project and you will see why. You will either have to a) use the PK in your comparison b) use composite-id fo

Re: [nhusers] Anything wrong with this HQL statement?

2010-12-10 Thread Fabio Maulo
which is the full message of the exception ? On Fri, Dec 10, 2010 at 6:45 PM, Aaron Boxer wrote: > var hql = "select distinct fm from ReceivedFax f" >+ " join f.ReceivingFaxMachine fm " >+ " where fm.Deactivated = :deactivated" >

[nhusers] Anything wrong with this HQL statement?

2010-12-10 Thread Aaron Boxer
var hql = "select distinct fm from ReceivedFax f" + " join f.ReceivingFaxMachine fm " + " where fm.Deactivated = :deactivated" + " and f.Status in (:new, :detached)"; It's causing the ANTLR HQL parser

[nhusers] Re: Linq, Contains, and Generic IEqualityComparer

2010-12-10 Thread Scott
Yes, it uses the interface IEqualityComparer. On Dec 10, 12:18 pm, Fabio Maulo wrote: > Is ItemEqualityComparer a custom function inside your RDBMS ? > > > > > > On Fri, Dec 10, 2010 at 1:53 PM, Scott wrote: > > This worked with the old Linq provider, no dice on the new one. > > > Basically try

Re: [nhusers] Linq, Contains, and Generic IEqualityComparer

2010-12-10 Thread Fabio Maulo
Is ItemEqualityComparer a custom function inside your RDBMS ? On Fri, Dec 10, 2010 at 1:53 PM, Scott wrote: > This worked with the old Linq provider, no dice on the new one. > > Basically trying to use my own IEqualityComparer > > Here's what I'm doing: > > //Some in memory list of items > List

[nhusers] Re: polymorphic query using full text search

2010-12-10 Thread dedgi
For more detail, I want to do something like this IQuery query = session.CreateQuery("from BaseClass bc" + " where subclass.UniqueToSubclass like :keyword"); query.SetString("keyword", keyword); obviously I will switch it to freetext instead of like to utilize full te

[nhusers] Linq, Contains, and Generic IEqualityComparer

2010-12-10 Thread Scott
This worked with the old Linq provider, no dice on the new one. Basically trying to use my own IEqualityComparer Here's what I'm doing: //Some in memory list of items List itemList = new List(){ new Item(1), new Item(2), new Item(3) }; var result = (from subI in _session.Query() where itemLi

[nhusers] Re: IsDirty() flushes new collection entities

2010-12-10 Thread SergeMat
I concur with "cremor" that this is clearly a bug regardless of what identity method or presentation layer design are used because the behavior of IsDirty does not match its description. The description of IsDirty indicates this: "Does this ISession contain any changes which must be synchronized w

[nhusers] Re: Session question

2010-12-10 Thread Jason Meckley
You'll want to take a look at the event listeners then. NH doesn't rule everything, it simply coordinates database operations, so you don't have too. if the state of the domain changes, Nh will propagate those changes for you. If you want to modify the state of the domain without modifying the data

[nhusers] Re: NH 3.0 GA & WCF Data services -> LINQ & SelectMany

2010-12-10 Thread Fabian Schmied
So will wait when Remotion will implement this feature Here's our JIRA entry for this feature: https://www.re-motion.org/jira/browse/RM-3551. I hope to implement it some time around Christmas, but can't promise anything. Regards, Fabian -- You received this message because you are subscribe

Re: [nhusers] Re: Session question

2010-12-10 Thread Jacob Madsen
Im working with a framework, where NHibernate is not king and ruling everything. So this developer would be very happy if NH could be so kind ;-) We have different kind of interceptors, where it would be really nice and handy if NH could expose this knowledge, so we could invoke a specific kind of

[nhusers] Re: Session question

2010-12-10 Thread Jason Meckley
these are lower level concerns within NH that a developers shouldn't need to think about. the session itself implements an identity map which is responsible for ensuring exactly 1 instance of an entity exists per session. Get() and Load() use the identity map to determine if the entity is already

[nhusers] Session question

2010-12-10 Thread Jacob Madsen
Hi there, Hope one of you can help me with 2 questions: 1) How do I ask a session if a specific entity is dirty / has changed? 2) Will ISession.Contains(entity) return true for any session-tracked entity, no matter how the entity was loaded / queried / retrieved? -- You received this message b

[nhusers] Re: NH 3.0 GA & WCF Data services -> LINQ & SelectMany

2010-12-10 Thread Alexander Kot
When rebuilding NH with Remotion - 1.13.85 exception has changed to Internal in debugger: "No corresponding expression node type was registered for method 'System.Linq.Queryable.SelectMany'. Returned to browser: Could not parse expression 'value(NHibernate.Linq.NhQueryable`1[FRPT.TestXModule.BL.

[nhusers] query cache and concurrency

2010-12-10 Thread Aaron Boxer
Hello! I am looking at the cache code, and I must be missing something, but I can't see where the query cache is locked during Puts. It doesn't seem to use a cache concurrency strategy, and yet multiple sessions may access it. Somebody, please shed some light here. Thanks, Aaron -- You receive

Re: [nhusers] Re: NHibernate 2.1.2 GA + Oracle + clob/nclob = ORA-01461

2010-12-10 Thread Fabio Maulo
which is the schema creation script generated by NH? are you creating the schema using NH? -- Fabio Maulo El 10/12/2010, a las 04:54, Ex_Soft <4othe...@gmail.com> escribió: >> 11000 > > > import="true"> > > > > > > > > length="11000" not-null="false" /> > >

[nhusers] Re: with-clause referenced two different from-clause elements

2010-12-10 Thread BenP
I believe if you are getting this error that it is a mapping problem. I wrote a blog about what I was doing and how I resolved my specific problem here: http://www.thebestcsharpprogrammerintheworld.com/blogs/With-clause-referenced-two-different-from-clause-elements.aspx -- You received this messa

Re: [nhusers] One-to-many to a subclass

2010-12-10 Thread Stefan Dobrovolny
I am running exactly into same issue. Is there already a bug for this? Thanks, Stefan -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhus...@googlegroups.com. To unsubscribe from this group, send email to nhuse

[nhusers] Re: nhibernate mapping join

2010-12-10 Thread dazed3confused
Thanks Fabio lol I had looked on the source forge page and didn't find it, then on looking again I managed to find them (hangs head in shame). Anyway I have got updated my application to use the nh 3.0.0GA and I am still getting the error message. So is there perhaps a bug in the new version of nhi

[nhusers] Understanding update issue with Cascade and EventListeners NH 3.0 during select

2010-12-10 Thread Maxus
Hi People, I have a wierd issue with extra updates being issues to the Database in an application I'm mucking around with. I have a following entity structure: public abstract class DomainEntity { public virtual TId Id { get; protected set; } public virtual int Version {