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
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.
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
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
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
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
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
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,
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,
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
-
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?
&
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
>
>
>
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
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
&
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
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
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
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
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
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
--~--~-~--~~--
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
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
--~--~-~--~~~
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
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
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
--~--~-~--~--
"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
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
--~--~-~--~~--
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
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
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
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
;
> >
> >
> > 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
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
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
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();
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
>
&
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:
> &
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
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
)" 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
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
41 matches
Mail list logo