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
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
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
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
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
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
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
, 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
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
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.
>>
>>
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
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
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
@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
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:
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
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
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
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
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
> 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
;
}
}
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
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)
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
24 matches
Mail list logo