Thanks for the reply. Is it possible to make a relationship on 2 columns
without having subclasses? Because the whole point of this structure is that
each address row/instance can be assigned as any type (home, work, billing),
e.g.: "same as above address" checkbox.
And regarding lazy load, I did
This is a .Net project using brail pages and ActiveRecord/NHibernate
I have been calling a function with a 'for x to n' statement. But I'd
like to make it transactional. I'm seeing examples for other RAILS
implementations of ActiveRecord, but I'm not sure about how to do it
here.
Currently I'm w
http://fabiomaulo.blogspot.com/2009/01/aspect-conversation-per.html
http://gustavoringel.blogspot.com/2009/02/unhaddins-persistence-conversation-part.html
2009/2/13 Graham Bunce
>
> All,
>
> Asking for some advice here. My understanding of multi-threaded
> programming is ok but any complex stuff
I am calling dispose on the UnitOfWork (see the HandleEndMessage() method
below).
I think the problem is actually in ActiveRecord's AbstractScope.PerformDisposal
method. It's calling Close rather than Dispose. I think its patch time for AR!
From: nhusers@googl
You need to call Dispose, not Close.
On Sat, Feb 14, 2009 at 2:07 AM, Tyler Burd wrote:
> Hi all. This one might be for Ayende…
>
>
>
> I'm trying to use NHibernate with System.Transactions (since Ayende
> informed me he put a good deal of work into it). My stack is NServiceBus
> trunk, NHibe
Hi all. This one might be for Ayende...
I'm trying to use NHibernate with System.Transactions (since Ayende informed me
he put a good deal of work into it). My stack is NServiceBus trunk, NHibernate
trunk, Rhino.Commons trunk, and ActiveRecord trunk.
I'm trying to create a UnitOfWorkMessageMo
All,
Asking for some advice here. My understanding of multi-threaded
programming is ok but any complex stuff still throws me a bit.
I've read in the documentation that the ISession is not thread safe
and, presumably as a result I need a seperate ISession per thread. Is
this correct - or should I
You might want to read this article as well:
http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/04/06/eager-loading-aggregate-with-many-child-collections.aspx
On Feb 13, 5:39 am, Roger Kratz wrote:
> No mapping problem.
>
> There are different solutions to this, one is to add
> .SetRe
If you are using NH 2.x, use everything between Transactions.
Cheers
On Fri, Feb 13, 2009 at 6:03 AM, Jerrie Pelser wrote:
>
> OK, this was just my lack of knowledge of how to use NHibernate which
> was shining through. Forgot to call session.Flush(). Everthing now
> works as expected.
--
Da
Ok I'm an eejit. Inverse was missing.
should be
Back to sleep.
Cheers,
Chris.
On Feb 13, 4:50 pm, "chris.j.smith...@googlemail.com"
wrote:
> I've got something insane going on. Something is trying to renumber a
> primary key!
>
> My transaction fails at the end, d
I've got something insane going on. Something is trying to renumber a
primary key!
My transaction fails at the end, doing...
UPDATE asset_instance
SETasset_instance_id = 1 /* ?p0 */
WHERE asset_instance_id = 38 /* ?p1 */
...which inevitably blows MySQL up.
Doesn't look right to me.
I ha
Welcome "Loquacious configuration"
http://fabiomaulo.blogspot.com/2009/02/nhvloquacious-fluent-configuration-for.html
--
Fabio Maulo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this g
There isn't an NH Contrib project AFAIK.
ActiveWriter is said to do its work nicely, and mygeneration has some NH
Templates as well.
Tuna Toksöz
http://tunatoksoz.com
http://twitter.com/tehlike
Typos included to enhance the readers attention!
On Fri, Feb 13, 2009 at 4:31 AM, Brett Veenstra wr
No mapping problem.
There are different solutions to this, one is to add
.SetResultTransformer(CriteriaUtil.DistinctRootEntity)
to your query
-Original Message-
From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of
James L
Sent: den 13 februari 2009 11:13
To: nhu
I can't seem to create a Google search query to find an answer, or
maybe I'm a NH heretic...
Starting with an existing Database Schema (e.g. Brownfield app), is
there a recommended way of generating HBM's?
CastleProject has a designer surface that is a Wizard-based approach
to this, but I'm wond
Hi there. I'm trying to optimize a particular set of queries by using
fetch joins to eagerly fetch the child entities. For some reason I'm
getting back duplicate entities.
Parent
- Child 1
- Child 2
Is coming back as:
Parent
- Child 1
- Child 2
Parent
- Child 1
- Child 2.
Is this a mapping pr
OK, this was just my lack of knowledge of how to use NHibernate which
was shining through. Forgot to call session.Flush(). Everthing now
works as expected.
On Feb 12, 4:14 pm, Jerrie Pelser wrote:
> Still no luck...
>
> On Feb 12, 3:22 pm, Dario Quintana
> wrote:
>
> > Jerrie,
> > Just in cas
17 matches
Mail list logo