[nhusers] Re: Insert and Update on the same record and transaction.

2015-12-04 Thread stuart . moore
On Thursday, 3 December 2015 19:56:17 UTC, Felipe Oriani wrote: > > Hello guys, I have a problem using NHibernate, but first let me explain > the scenario. > > We have a web application which allows the user to manage fields over the > entities. For sample, we have a City table with fixed columns

[nhusers] Event fired after loading each entity

2015-01-16 Thread stuart . moore
Is there a way I can hook into nhibernate to trigger an event immediately after an object has been loaded from the database, no matter how it was loaded? DefaultLoadEventListener.LoadFromDatasource almost works but doesn't seem to be triggered on the items in a collection when they're loaded.

[nhusers] Re: ReadOnlyAccess to ActionQueue Insert, Update and Delete list

2014-12-17 Thread stuart . moore
On Wednesday, 17 December 2014 17:22:59 UTC, Ricardo Peres wrote: > > But why don't you use the built in IValidatable and/or ILifecycle > interfaces, or the event system, have you tried? > Thanks - I hadn't discovered them. I might be able to use them, but our current validation is a little dif

[nhusers] ReadOnlyAccess to ActionQueue Insert, Update and Delete list

2014-12-17 Thread stuart . moore
We use a modified version of NHibernate, and I'm trying to get back to using an official release (either by finding the "proper" way to do things, or by getting our changes into the main codebase). We have found it helpful to have read-only access to the ActionQueue's list of insertions, update

[nhusers] Status of different versions of NHibernate

2014-12-16 Thread stuart . moore
Apologies if this is a FAQ, but I haven't been able to find anywhere that's clear. Which versions of NHibernate are considered stable, and which are best not used for production? http://nhforge.org/ suggests 3.3.3 is the correct one to currently use, but the github repository has tags for 3.4 a

Re: [nhusers] Problem with composite-id and second level cache

2011-03-29 Thread Stuart Carnie
I've created NHCH-36 <http://216.121.112.228/browse/NHCH-36> to identify the issue and provided a fix<https://github.com/scarnie/nhcontrib/commit/650aedee0aa417f34097b145dfc75f8c3a746bec> in my fork on GitHub. Cheers, Stuart -- You received this message because you are

Re: [nhusers] Problem with composite-id and second level cache

2011-03-28 Thread Stuart Carnie
Yes it is a bug in the memcached provider. The same issue exists in the Enyem. I have forked <https://github.com/scarnie/nhcontrib> an up-to-date version of NHContrib on GitHub and will commit fixes for both tomorrow. Cheers, Stuart -- You received this message because you are subs

Re: [nhusers] Arbitrary compound/composite key in relationship mapping (legacy database)

2011-02-22 Thread Stuart Carnie
mapped. Cheers, Stuart -- 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 from this group, send email to nhusers+unsubscr...@googlegroups.com. For more options,

Re: [nhusers] Arbitrary compound/composite key in relationship mapping (legacy database)

2011-02-22 Thread Stuart Carnie
in set B” Cheers, Stuart -- 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 from this group, send email to nhusers+unsubscr...@googlegroups.com. For more options,

[nhusers] Arbitrary compound/composite key in relationship mapping (legacy database)

2011-02-18 Thread Stuart Carnie
bJk/TV7yP19xD8I/AmA/jclNdZzbPyU/relationship-example.png> The closest I found was using a group in the definition, though this is not implemented in NHibernate and the feature is not flexible enough, as the same columns may be used in other relationships. Thoughts? Cheers, Stuart -

Re: [nhusers] Re: Friends, did you see this? A NH Designer!!!

2010-08-17 Thread Stuart Laughlin
STAR WARS OR YOU ARE A MORON!!111ONE!!! --Stuart On Tue, Aug 17, 2010 at 11:51 AM, Diego Mijelshon wrote: > Gotcha... > For some reason, Spock seems more popular among us nerds... :-) > BTW, that gives me an idea for the next NHibernate debate... Star Wars or > Star Trek? &

Re: [nhusers] Re: Friends, did you see this? A NH Designer!!!

2010-08-17 Thread Stuart Laughlin
If this thread would have been even marginally informative, imagine how much we would all know by now :) --Stuart On Tue, Aug 17, 2010 at 11:34 AM, Diego Mijelshon wrote: > It's like a marathon... you just have to keep going, no matter what :-D > >     Diego > > >

Re: [nhusers] Re: Friends, did you see this? A NH Designer!!!

2010-08-17 Thread Stuart Laughlin
Let us pile on the hearty congratulations, such that this magnificent accomplishment can never by surmounted! CONGRATULATIONS ONE AND ALL :) :) :) --Stuart On Tue, Aug 17, 2010 at 10:39 AM, Fabio Maulo wrote: > RECORD!!! in nhusers story. > This thread has more than 100

Re: [nhusers] Re: Strong named NHibernate.Linq

2010-01-12 Thread Stuart Booth
Excellent :-) 2010/1/12 Vittel > It worked really great! TY! > I uploaded the signed file and the used key-file from the old Linq > sources > > http://drop.io/NHibernate212LinqSigned > > Regards, Christian > > On 11 Jan., 14:03, Stuart Booth wrote: > > Hi &

Re: [nhusers] Re: Strong named NHibernate.Linq

2010-01-11 Thread Stuart Booth
Hi Have you tried signing it with http://www.codeplex.com/Signer ? It's worked for me on other assemblies ;-) Stu 2010/1/11 Vittel > I have exactly the same result here. When i compile the contrib > sources, i get a 0.0.0.0 version. > It would be great to have the code for the released versi

[nhusers] Re: Best practise in low coupling scenarios?

2009-08-30 Thread Stuart
ve/2008/05/29/nhibernate-many-to-many-collections-or-mapping-is-not-one-table-one-class.aspx --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to

[nhusers] Re: I think I want to inject my DAOs into my domain models

2009-08-29 Thread Stuart
d up in the ditch on the other side of the road (anemic domain model). --Stuart --~--~-~--~~~---~--~~ 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

[nhusers] Re: I think I want to inject my DAOs into my domain models

2009-08-29 Thread Stuart
get; set; } public IList Services { get; set; } public Patient Patient { get; set; } } public class Patient { } --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[nhusers] Re: I think I want to inject my DAOs into my domain models

2009-08-29 Thread Stuart
rom a database would be an additional responsibility, but that's what the DAO is doing for you -- that's the DAO's responsibility. --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhuser

[nhusers] Re: I think I want to inject my DAOs into my domain models

2009-08-29 Thread Stuart
IOrderDAO orderDao; public Customer(IOrderDAO orderDao) { this.orderDao = orderDao; } public int Id { get; set; } public IList GetAllOrders() { return orderDao.FindAllOrders(this.Id); } } That's my $0.02 anyway. --Stuart --~--~-~--~~--

[nhusers] Re: whats really wrong with opening session in repository

2009-07-10 Thread Stuart
sions get opened and closed. The repositories use the session, but they don't control it -- that would be beyond their scope. --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers" grou

[nhusers] Re: 2.1.0 Alpha 3

2009-05-28 Thread Stuart
are a bit misleading because the oracle dialects were not so much removed as simply broken (i.e. using them doesn't result in fast failure but rather an exception further down the road). Apologies if I've just explained what you already knew. --Stuart --~--~-~--~~~

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-14 Thread Stuart Laughlin
On Thu, May 14, 2009 at 1:08 PM, Fabio Maulo wrote: > > Interesting... and where are your posts ? > Touché. Forthcoming, I hope -- Lord willing! :) --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-14 Thread Stuart
ld understand the dynamic-map merge semantics we've been discussing and implement them by default. But you knew that by now. :) --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers" group. To p

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-14 Thread Stuart
a scaffold-like mechanism built on top of the NH mappings. As a result, adding a new table-to-be-maintained to the system is as easy as creating an 'hbm.xml' file for the new table and putting that file in a directory. It works great and is about 98% complete. --Stuart --~--~-~--~--

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-14 Thread Stuart
"ParentId"] = NULL mergedEntity = session.Merge("Widget", editedEntity) The proof is that I don't need to tell you what mergedEntity looks like. You already know. :) And the code to achieve this is fairly trivial, as you can

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-13 Thread Stuart
gt; at least for EntityMode.Map. > I think I will give this a shot. I know absolutely nothing about tuplizers. Do you have any good references for me, or shall Google be my guide? Thanks a lot for the help, Fabio. I really appreciate your work and your help! --Stuart --~--~-~--~~--

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-13 Thread Stuart
g key. Do you see what I mean? Thanks! --Stuart --~--~-~--~~~---~--~~ 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 from this

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-13 Thread Stuart
On May 13, 6:06 pm, Fabio Maulo wrote: > > Stuart, are you working with EntityMode.Map and WCF ? > No WCF involved here. (It's a MonoRail app, for the record.) --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed

[nhusers] Re: 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-13 Thread Stuart
m the persisted entity would be used. When the dictionary we're merging does have an "Inserted" key with a null value, we know it should be updated to null. > You should set dynamic-insert="true" dynamic-update="true" and try again. > I'll give that s

[nhusers] 2.1.0 Alpha2 -- Dynamic Map Mode -- Merge Bug?

2009-05-13 Thread Stuart
t values in my editedEntity, but clearly that doesn't happen. Any values unset in editedEntity get set to NULL in the merged entity. Is this a bug? I have a failing test that I'm happy to upload somewhere, if that's useful. If this is a bug, I'd be happy to have a go at creating a pa

[nhusers] Re: Nested transactions

2009-01-16 Thread Stuart Campbell
; > > > > > > On Thu, Jan 15, 2009 at 6:59 AM, Tuna Toksöz wrote: > > > Check Fabios blog athttp://fabiomaulo.blogspot.com > > > > > Tuna Toksöz > > >http://tunatoksoz.com > > > > > Typos included to enhance the readers attention! > &g

[nhusers] Re: Nested transactions

2009-01-15 Thread Stuart Campbell
To be honest I'm *not* actually sure. I will check that. Thanks Luis. Will also look into Castle Automatic Transaction facility. On Thu, Jan 15, 2009 at 2:31 PM, Luis Abreu wrote: > > > The thing is, I don't really want to have a dependency on MSDTC, which I > believe would be the case if I used

[nhusers] Re: Nested transactions

2009-01-15 Thread Stuart Campbell
009 at 11:35 AM, Luis Abreu wrote: > I think that using a TransactionScope object to wrap all your method > calls should work in this case. > > > > *From:* nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] *On > Behalf Of *Stuart Campbell > *Sent:* quinta-feira, 15 d

[nhusers] Nested transactions

2009-01-15 Thread Stuart Campbell
What's the recommended way to support nested transactions in NH? Basically, I'm using session-per-request and my repository methods wrap all calls in a transaction like this... var tran = session.BeginTransaction(); try { // do work here tran.Commit(); } catch { tran.Rollback();

[nhusers] Re: Another Transaction Question

2009-01-07 Thread Stuart Campbell
all me out if I'm talking baloney here. I'm a noob after all. On Wed, Jan 7, 2009 at 2:22 PM, Sal wrote: > > Stu, > > Seems to make sense. I need to write some code to put it all together. > What does your unitofwork implementation look like? > > Matt > &

[nhusers] Re: Another Transaction Question

2009-01-07 Thread Stuart Campbell
s to explicitly start a transaction at the beginning of the request > and commit or rollback at the end of the request? > > That makes sense. The nested transaction question is where I am > getting stumped. > > > > On Jan 7, 5:08 am, "Stuart Campbell" > wrote: > &

[nhusers] Re: Another Transaction Question

2009-01-07 Thread Stuart Campbell
First off I'll just say that I'm an NHibernate noob. So please correct me if I'm wrong... I think what Sal is saying is that even using session-per-request you sometimes want nested transactions. Granted, in many cases the single transaction per request is sufficient (e.g. commit or rollback on A

[nhusers] Re: Another Transaction Question

2009-01-06 Thread Stuart Campbell
Hi Sal, I'm doing exactly the same as you with StructureMap and NHibernate (Only just started). Obviously, the whole request will be in the context of a transaction and that's all taken care of. But like you, I also want to control multiple transactions within my services too. I haven't implemente

[nhusers] HQL Object Constructors -- Initialize with Parameter?

2008-10-21 Thread Stuart
)" doesn't seem to be supported. Any help would be greatly appreciated! --Stuart --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegr

[nhusers] Re: Sourceforge is killing me

2008-10-17 Thread Stuart
On Oct 16, 10:48 am, "c.sokun" <[EMAIL PROTECTED]> wrote: > > please move to code.google.com or codeplex > *Please* _never_ move to codeplex! I'll do anything!! --Stuart p.s. That's the first time I've been tempted to write a