[nhusers] Re: Is it possible to speed up the loading of an entire data tree?

2008-09-22 Thread Ken Egozi
you can also fire scalar queries to count what needs counting. and use MultiQuery to run all of these in a single roundtrip On Tue, Sep 23, 2008 at 2:24 AM, Will Shaver <[EMAIL PROTECTED]> wrote: > > If you know that you're going to need to serialize ALL of the children > of a graph, you could se

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Ken Egozi
try this: select o from Orders o join o.Person p where o is SpecialOrder or person.IsDeleted = 0 On Tue, Sep 23, 2008 at 1:31 AM, Jon Palmer <[EMAIL PROTECTED]> wrote: > Ok I see the confusion. My second message could be been clearer in saying: > "As well as all SpecialOrders I want my result

[nhusers] Re: Introducing NHibernate ProxyGenerators

2008-09-22 Thread Tuna Toksöz
Congratulations! On Tue, Sep 23, 2008 at 8:42 AM, Bill Pierce <[EMAIL PROTECTED]> wrote: > I am pleased to announce the first release of NHibernate > ProxyGenerators, > the latest addition to the NHibernate > Contrib

[nhusers] Introducing NHibernate ProxyGenerators

2008-09-22 Thread Bill Pierce
I am pleased to announce the first release of NHibernate ProxyGenerators, the latest addition to the NHibernate Contribproject. NHibernate ProxyGenerators (NHPG) is a simple utility that you ca

[nhusers] Re: WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread WaYdotNET la potenza del .NET nella mani di Carlo
Hi Artur, if u publish yr sample 4 all ? Many thx Carlo Bertini 2008/9/22 Artur Dorochowicz <[EMAIL PROTECTED]> > > Hi Paulo > > I've sent you an e-mail (it's from different e-mail address than I use > here). > > > On 22 Wrz, 20:32, "Paulo Quicoli" <[EMAIL PROTECTED]> wrote: > > Hi Arthur, > > >

[nhusers] Re: Multicriteria and ResultTransformers

2008-09-22 Thread Ayende Rahien
It was fixed about a week ago On Tue, Sep 23, 2008 at 4:53 AM, Neal Blomfield <[EMAIL PROTECTED]>wrote: > > I have a reporting module that creates a number of detached queries, > assigns the appropriate result transformer and then adds all of the > detached criteria to a multicriteria. > > Testin

[nhusers] Re: SNIReadSync

2008-09-22 Thread Ayende Rahien
This is the call that actually read from the DB.SNI is the SQL protocol. The reason that you see those numbers being high is that the DB is performing more work On Tue, Sep 23, 2008 at 2:36 AM, Roger Kratz <[EMAIL PROTECTED]>wrote: > Hi > > > > From time to time when analyzing queries, much time

[nhusers] Multicriteria and ResultTransformers

2008-09-22 Thread Neal Blomfield
I have a reporting module that creates a number of detached queries, assigns the appropriate result transformer and then adds all of the detached criteria to a multicriteria. Testing each of the detached criteria in isolation works as expected (both TransformTuple and TransformList are called), h

[nhusers] SNIReadSync

2008-09-22 Thread Roger Kratz
Hi >From time to time when analyzing queries, much time are spent in >SNINAtiveMethodWrapper.SNIReadSync when NHybridDataReader is grabbing data out >of the datareader. I would guess this is more of an ado.net question than nhib, but I'm sort of in the dark here... I got the impression that I'

[nhusers] Re: Is it possible to speed up the loading of an entire data tree?

2008-09-22 Thread Will Shaver
If you know that you're going to need to serialize ALL of the children of a graph, you could session.Get() all levels of the graph at the start of the call. NH will then link the entities up for you and avoid return trips to the DB. Unless your entities are HUGE (blob size binary data) then genera

[nhusers] Is it possible to speed up the loading of an entire data tree?

2008-09-22 Thread gatapia
Hi, I need to serialise a data tree however the performance of this is understandable poor as all children must be fetched prior to serialisation. I was looking for a better performing way of doing this. Currently before serialising a child collection I check wether the collection is empty by:

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Jon Palmer
Ok I see the confusion. My second message could be been clearer in saying: "As well as all SpecialOrders I want my result set to inlcude Orders that are not SpecialOrders but do have a non-deleted Person." I'm building the JIRA test case now. I tried the HQL solution you suggested but I think th

[nhusers] Re: WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread Artur Dorochowicz
Hi Paulo I've sent you an e-mail (it's from different e-mail address than I use here). On 22 Wrz, 20:32, "Paulo Quicoli" <[EMAIL PROTECTED]> wrote: > Hi Arthur, > > i'm using NHibernate + WPF with no problems.. could you send me a simple > demo where that occurs ? --~--~-~--~~-

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Ken Egozi
I still do not follow. on the first message: > all Orders where the order is of type special order or where the > Order.Person is not deleted > on the second message: > I want my result set to inlcude Orders that are not SpecialOrders but do > have a non-deleted Person. the reasoning from the

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Jon Palmer
sorry typo in my previous email, should be:"I would expect to get back the first 4 orders but not order 5. " On Mon, Sep 22, 2008 at 12:12 PM, Jon Palmer <[EMAIL PROTECTED]> wrote: > Ok I will file the JIRA ticket. I'm not sure how I would > use CreateCriteria(typeof(SpecialOrder)). I want my res

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Ken Egozi
? On Mon, Sep 22, 2008 at 10:12 PM, Jon Palmer <[EMAIL PROTECTED]> wrote: > Ok I will file the JIRA ticket. I'm not sure how I would > use CreateCriteria(typeof(SpecialOrder)). I want my result set to inlcude > Orders that are not SpecialOrders but do have a non-deleted Person. > Suppose the lef

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Jon Palmer
Ok I will file the JIRA ticket. I'm not sure how I would use CreateCriteria(typeof(SpecialOrder)). I want my result set to inlcude Orders that are not SpecialOrders but do have a non-deleted Person. Suppose the left join of the Orders and Parties table looks like this Order.ID | Order.Class | Or

[nhusers] Re: Criteria queries and logical Expressions

2008-09-22 Thread Ayende Rahien
NRE is a bug, please create a test case and add it to the JIRA. In the meantime, you can use CreateCriteria(typeof(SpecialOrder)) On Mon, Sep 22, 2008 at 9:59 PM, Jon Palmer <[EMAIL PROTECTED]> wrote: > I would appreciate some help combining logical expressions in criteria > queries. > My toy obj

[nhusers] Criteria queries and logical Expressions

2008-09-22 Thread Jon Palmer
I would appreciate some help combining logical expressions in criteria queries. My toy object model is three classes Order and a subclass SpecialOrder Person each Order has a Person property. I'm trying to do a query for all Orders where the order is of type special order or where the Order.Perso

[nhusers] Re: WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread Paulo Quicoli
Hi Arthur, i'm using NHibernate + WPF with no problems.. could you send me a simple demo where that occurs ? thanks 2008/9/22 Artur Dorochowicz <[EMAIL PROTECTED]> > > Hello, > > I have a simple hierarchy of classes in my model. I retrieve the root > of the hierarchy with ISession.Get<>(), so t

[nhusers] Re: WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread Victor Kornov
Debugging throug FW source is always an option. On Mon, Sep 22, 2008 at 10:42 PM, Artur Dorochowicz < [EMAIL PROTECTED]> wrote: > Besides, I'm pretty sure change notifications work, it's just that WPF > does not subscribe to them for unknown reason. --~--~-~--~~~---~-

[nhusers] Re: WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread Artur Dorochowicz
Hi Ayende, I have read your article earlier. Very interesting, but in order to drop manual support for INotifyPropertyChanged, I would have to always instantiate all my model classes through some proxy generator. Besides, I'm pretty sure change notifications work, it's just that WPF does not subs

[nhusers] Re: WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread Ayende Rahien
What happen if you use this ability?Advance: Extending NHibernate Proxies The issue is that the proxy will forward the call to the real object, which is hidden. It _should_ forward registration for events as w

[nhusers] WPF not subscribing to PropertyChanged events on proxies generated by NH

2008-09-22 Thread Artur Dorochowicz
Hello, I have a simple hierarchy of classes in my model. I retrieve the root of the hierarchy with ISession.Get<>(), so that that is my actual class, and then I initialize the rest of the hierarchy with NHibernateUtil.Initialize() (so they are just proxies). Classes in the model implement INotif

[nhusers] Re: Why that many columns?

2008-09-22 Thread Roger Kratz
Yes. Thanks. I mentioned them both because I thought they somehow were related to each other – that nhib should be able to create sql for only objects it needs to create. I should have skipped the first one though (hql)… I was looking for a way to do the same thing in criteria. Is there any?

[nhusers] Re: Why that many columns?

2008-09-22 Thread Ken Egozi
***select a*** from YOUR_HQL On Mon, Sep 22, 2008 at 6:53 PM, Roger Kratz <[EMAIL PROTECTED]>wrote: > from A a inner join a.B b where…. > > or > > CreateCriteria(typeof(A)).CreateAlias("B","b", JoinType.InnerJoin)…. > > > > Why is b's data returned in the result set/part of the select clause (

[nhusers] Why that many columns?

2008-09-22 Thread Roger Kratz
from A a inner join a.B b where or CreateCriteria(typeof(A)).CreateAlias("B","b", JoinType.InnerJoin) Why is b's data returned in the result set/part of the select clause (if fetch or SetFetchMode isn't used)? I'm feel I'm missing something obvious here... /Roger --~--~-~--~

[nhusers] Re: NHibernate relations

2008-09-22 Thread Victor Kornov
My point was about designer. As for lazy loading... it's simply not that advanced to use proxies. It also lacks in other areas and L2S vs. Nhib is not a question. It's unfair to dismiss L2S on the premise of "it has visual designer, that is bad" :) On Mon, Sep 22, 2008 at 5:48 PM, Ken Egozi <[EMAI

[nhusers] Re: NHibernate relations

2008-09-22 Thread Sidar Ok
You also need to hand craft management of back references when you do POCOs, in order to avoid "Attempt to break an association" exception. But in fairness it is for sure more capable than many people think. On Mon, Sep 22, 2008 at 2:48 PM, Ken Egozi <[EMAIL PROTECTED]> wrote: > urban legend? >

[nhusers] Re: NHibernate relations

2008-09-22 Thread Ken Egozi
urban legend? you simply can't achieve lazy loading without having specific code to enable that in your getters/setters. On Mon, Sep 22, 2008 at 4:35 PM, Victor Kornov <[EMAIL PROTECTED]> wrote: > That's urban legend that L2S is RAD/designer oriented tool. Take a look at > http://codebetter.com

[nhusers] Re: NHibernate relations

2008-09-22 Thread Victor Kornov
That's urban legend that L2S is RAD/designer oriented tool. Take a look at http://codebetter.com/blogs/ian_cooper/archive/tags/LINQ/default.aspx series of posts.It supports POCO & does not need designer at all. On Sat, Sep 20, 2008 at 9:36 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote: > BTW you can

[nhusers] Re: NHibernate relations

2008-09-22 Thread Tuna Toksöz
w00t. Thanks for that great share! On Mon, Sep 22, 2008 at 9:41 AM, Stefan Nobis <[EMAIL PROTECTED]> wrote: > "Ricardo Borges" <[EMAIL PROTECTED]> writes: > > > "Common Lisp is a multiparadigm, general-purpose programming > > language that: Supports a combination of procedural, functional and > >