[nhusers] Property formula syntax error

2010-04-30 Thread Rémi Després-Smyth
Hello. I’m trying to setup a property formula in and I’m having trouble. I’m trying to get the sum of all issues and errors that were flagged during a validation step. This system distinguishes between an “issue” and an “error”, and they are currently stored in two distinct tables, but I’d like

RE: [nhusers] Improper loading of joined instance in ISqlQuery

2010-03-18 Thread Rémi Després-Smyth
instance in ISqlQuery HQL _DOES_ support the having clause... so you might want to remove the SQL query completely. Diego 2010/3/16 Rémi Després-Smyth I've got a problem using an ISQLQuery with an AddJoin. The entity I'm trying to return is RegionalFees, which has a composit

[nhusers] Improper loading of joined instance in ISqlQuery

2010-03-16 Thread Rémi Després-Smyth
I've got a problem using an ISQLQuery with an AddJoin. The entity I'm trying to return is RegionalFees, which has a composite-id which includes a Province instance. (This is the instance being improperly loaded.) Here's the mapping: Here's my query method: pu

[nhusers] Mapping collections as

2010-01-04 Thread Rémi Després-Smyth
A quick question regarding mapping collections as . Here was the mapping file I used in my tests: In my testing, I found that if I use the mapping file as liste

RE: [nhusers] how should optimistic concurrency using a version field work?

2009-11-23 Thread Rémi Després-Smyth
ct you load the second time is the same version as when you first displayed the form to the client. NHibernate cannot help you with that. /Oskar 2009/11/23 Rémi Després-Smyth : > Sorry, yes, I see in the docs that Load will pull a proxy.  What I don't > understand is why the differences

RE: [nhusers] how should optimistic concurrency using a version field work?

2009-11-23 Thread Rémi Després-Smyth
nhusers@googlegroups.com Subject: Re: [nhusers] how should optimistic concurrency using a version field work? It is according to documentation. /Oskar 2009/11/23 Rémi Després-Smyth : > Thanks Oskar - you're right, it did.  Using 'Get' gives me the behavior I'd > expec

RE: [nhusers] how should optimistic concurrency using a version field work?

2009-11-23 Thread Rémi Després-Smyth
2009 10:43 AM To: nhusers@googlegroups.com Subject: Re: [nhusers] how should optimistic concurrency using a version field work? Did the changes I suggested make a difference? /Oskar 2009/11/23 Rémi Després-Smyth : > Clearly I don’t have a correct understanding of how it works then.  Can I > bother

RE: [nhusers] how should optimistic concurrency using a version field work?

2009-11-23 Thread Rémi Després-Smyth
, 2009 10:26 AM To: nhusers@googlegroups.com Subject: Re: [nhusers] how should optimistic concurrency using a version field work? no. 2009/11/23 Rémi Després-Smyth Fabio, There wouldn’t be two transactions on the same thread, but I’m working on a web app, so different worker threads would be

RE: [nhusers] how should optimistic concurrency using a version field work? [fixed typo]

2009-11-23 Thread Rémi Després-Smyth
oads objects in an unlocked mode. Can you try Session.Load(Id, LockMode) with Lockmode explicitly specified? Hope that solves your problem. Thanks, Socratees. 2009/11/20 Rémi Després-Smyth Sorry, just noticed a typo in the code from the email. Corrected it and re-sent. Remi. Fro

RE: [nhusers] how should optimistic concurrency using a version field work?

2009-11-23 Thread Rémi Després-Smyth
b. >> >> Get fetches the object immediately, while Load returns a proxy, not >> loading the object until you first access one of it's properties. This >> should cause b to actually show the value committed in sess1, the way >> your code looks now. >> >>

[nhusers] how should optimistic concurrency using a version field work? [fixed typo]

2009-11-20 Thread Rémi Després-Smyth
Sorry, just noticed a typo in the code from the email. Corrected it and re-sent. Remi. From: Rémi Després-Smyth [mailto:r...@terracognita.ca] Sent: November 20, 2009 3:17 PM To: nhusers@googlegroups.com Subject: [nhusers] how should optimistic concurrency using a version field work

[nhusers] how should optimistic concurrency using a version field work?

2009-11-20 Thread Rémi Després-Smyth
Can anyone explain optimistic locking in the context of NHibernate? (Using NHib 2.1.1.) I’ve been running tests and my results are counter-intuitive. I have a versioned entity: tblHiloUId nextHighValue

[nhusers] Re: proper event listener configuration

2009-11-04 Thread Rémi Després-Smyth
Subject: [nhusers] Re: proper event listener configuration can you recreate the issue with NH2.1.0 ? 2009/10/30 Rémi Després-Smyth Hi. I'm trying to use an event listener for the first time. All samples I've found show how easy it is to configure, but for some reason I'm having tro

[nhusers] Re: proper event listener configuration

2009-11-04 Thread Rémi Després-Smyth
@googlegroups.com Subject: [nhusers] Re: proper event listener configuration can you recreate the issue with NH2.1.0 ? 2009/10/30 Rémi Després-Smyth Hi. I'm trying to use an event listener for the first time. All samples I've found show how easy it is to configure, but for some

[nhusers] proper event listener configuration

2009-10-30 Thread Rémi Després-Smyth
Hi. I'm trying to use an event listener for the first time. All samples I've found show how easy it is to configure, but for some reason I'm having trouble. I suspect I'm missing something obvious. I've tried this: as well as:

[nhusers] Re: Why is NHibernate deleting immutable class instance?

2009-10-09 Thread Rémi Després-Smyth
ct that this is the same in both NHib 2.0 and 2.1. I’ve opened a JIRA case for it – NH-1985. From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of Rémi Després-Smyth Sent: October 7, 2009 12:37 PM To: nhusers@googlegroups.com Subject: [nhusers] Re: Why is NHib

[nhusers] Re: Why is NHibernate deleting immutable class instance?

2009-10-07 Thread Rémi Després-Smyth
egroups.com] On Behalf Of Rémi Després-Smyth Sent: October 6, 2009 3:03 PM To: nhusers@googlegroups.com Subject: [nhusers] Why is NHibernate deleting immutable class instance? Hello. I'm trying to migrate an app from NHibernate 1.x to 2.1, and I've noticed something odd: my i

[nhusers] Why is NHibernate deleting immutable class instance?

2009-10-06 Thread Rémi Després-Smyth
Hello. I'm trying to migrate an app from NHibernate 1.x to 2.1, and I've noticed something odd: my immutable objects are being deleted in my integration tests. For example, this test used to pass: [Test, ExpectedException(typeof(NHibernate.HibernateException))] public void DeleteExistingInstance

[nhusers] Re: Why is this query slower using NHibernate.Search?

2009-05-04 Thread Rémi Després-Smyth
minutes – which is just silly. Can anyone offer any suggestions? From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of Rémi Després-Smyth Sent: May 3, 2009 11:33 PM To: nhusers@googlegroups.com Subject: [nhusers] Why is this query slower using NHibernate.Search

[nhusers] Why is this query slower using NHibernate.Search?

2009-05-03 Thread Rémi Després-Smyth
I’ve been playing with NHibernate.Search, for Lucene.Net integration (using NHib 1.2.1.4000). Two test code snippets: var parser = new QueryParser(field, new StandardAnalyzer()); Lucene.Net.Search.Query luceneQuery = parser.Parse("Prince*"); IFullTextSession fts = Search.CreateFullTextSessio

[nhusers] Re: Crash in CastleProxyFactory.GetProxy

2009-04-27 Thread Rémi Després-Smyth
> As newb you should use at least NH2.0.1. > Btw, you are using a proxy with a closed session. I’m using NHibernate 1.2.1.4000 because this is an existing app; that was the current version when it was built originally. The session is opened during the HttpApplication’s BeginRequest event, an

[nhusers] Re: Crash in CastleProxyFactory.GetProxy

2009-04-27 Thread Rémi Després-Smyth
; } } This doesn’t look wrong to me, though. A little help to a newb? Regards, Remi. From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of Rémi Després-Smyth Sent: April 27, 2009 2:10 PM To: nhusers@googlegroups.com Subject: [nhusers] Crash in

[nhusers] Crash in CastleProxyFactory.GetProxy

2009-04-27 Thread Rémi Després-Smyth
This may be much too vague, but… NHibernate version 1.2.1.4000. I’m trying to load an entity using GetById. CastleProxyFactory.GetProxy is crashing, no exception. Specifically, in this method: public INHibernateProxy GetProxy(object id, ISessionImplementor session)

[nhusers] Error: Creating a proxy instance failed

2009-04-27 Thread Rémi Després-Smyth
I’m using NHibernate version 1.2.1.4000. I was getting a "Creating a proxy instance failed." Error; looking into it further, the inner exception was being thrown by _proxyGenerator.CreateClassProxy(_persistentClass, _interfaces, initializer, false); In NHibernate.Proxy.CastleProxyFacto