[nhusers] Re: Slowdown After Upgrading from 1.2.1 to 2.1.2

2010-03-01 Thread jason.hill
Very interesting...thanks for the link. If you just read data with a Get, do you still need to call tx.Commit() at the end? On Feb 26, 12:27 am, Jason Meckley jasonmeck...@gmail.com wrote: http://nhprof.com/Learn/Alerts/DoNotUseImplicitTransactions On Feb 25, 2:18 am, jason.hill

[nhusers] Fwd: [horn-development] Hornweb is back

2010-03-01 Thread Craig Nicol
As a few people here were reporting problems with hornget, I thought you'd like to know it's back up. Thanks to Paul and Dave for getting this back up. -- Forwarded message -- From: Paul Cowan dag...@scotalt.net Date: Mon, Mar 1, 2010 at 09:00 Subject: [horn-development] Hornweb

[nhusers] NHibernate streaming

2010-03-01 Thread pebrian27
Hi! Does NHibernate provide streaming support? If not, are there other ORMs than has this feature? What I mean by streaming is that the users can see the rows/objects being loaded one-by-one/partially (Think of SQL Management Studio when the query result is thousands of record). I can't implement

[nhusers] Will NHibernate handle this?

2010-03-01 Thread 3P
Hi guys. I thinking about converting my data access layer to NHibernate. I have database already created with stored procedures for selecting, inserting and updating. I select using SQL from some views too. It's Oracle database. Every record in my database has ID - obvious IV - version of that

[nhusers] Re: NHibernate streaming

2010-03-01 Thread sbohlen
Its not clear to me how this would work (efficiently) in practice. Having even ONE connected client (never mind multiple clients) performing an unbounded query that could return 10K records from 250M in a single query seems a) a database interaction design anti-pattern and b) a tremendous

[nhusers] Re: Slowdown After Upgrading from 1.2.1 to 2.1.2

2010-03-01 Thread sbohlen
Depends on the setting of FlushMode re: whether you must do it explicitly or not, but in general, yes, you need to commit the tx at the end of the tx block *somehow* b/c the whole point of that piece referenced above is that you don't necessarily know whether your Get() has in fact involved a

[nhusers] Re: NHibernate streaming

2010-03-01 Thread sbohlen
Sorry, I just re-read your post a bit more closely...the query can take HOURS? Wondering what the user is doing while this is running? Getting lunch? :) Seriously, a query that could take hours is really more a 'report' and should probably be handled like one (run async and then its results

[nhusers] Lazyload a Component ?

2010-03-01 Thread Martin From
Hello, is it possible to lazyload a component ? I have set lazy=true in the mappings for the component, and it is not complaining, but it is not working either. Martin :) -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send

[nhusers] Re: Slowdown After Upgrading from 1.2.1 to 2.1.2

2010-03-01 Thread Jason Meckley
yes, you should still call commit (rollback) because the session was opened (began) you will want to explicitly end the transaction (commit/ rollback). the common web usage scenario is 1. begin request open session 2. use a transaction filter on Controller Actions to manage the transaction

Re: [nhusers] Lazyload a Component ?

2010-03-01 Thread Diego Mijelshon
I *believe* this will work with 3.x (trunk). Read http://ayende.com/Blog/archive/2010/01/27/nhibernate-new-feature-lazy-properties.aspx Diego On Mon, Mar 1, 2010 at 09:50, Martin From f...@pc.dk wrote: Hello, is it possible to lazyload a component ? I have set lazy=true in the

[nhusers] Re: Lazyload a Component ?

2010-03-01 Thread Jason Meckley
you can now use the trunk for lazy properties. It may for components as well, so long as they are a property. here are details on the feature. http://ayende.com/Blog/archive/2010/01/27/nhibernate-new-feature-lazy-properties.aspx. If this doesn't work consider moving the lazy component to a

[nhusers] Dirty checking

2010-03-01 Thread Peter Forstmeier
Hi, i read my entity's List T with Session A. If i modify a couple of them and call SaveOrUpdate from Session B i can see that all my entity's are updatetd to the Database. Is there a clean way to do dirty checking with detached objects witch i can use for all my entiy's. Thanks Peter -- You

[nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread 3P
I don't understand your question. I want to have object model of my database and be able to DDD. I don't see how having SP's or no changes anything. If  your situation is that you have everything done via SP, why you want use a framework based in ORM ? -- Fabio Maulo -- You received this

[nhusers] Re: Lazyload a Component ?

2010-03-01 Thread Martin From
Thanks for the quick reply. Where do i find the 3.x trunk ? I can only find 2.1.2 on http://sourceforge.net/projects/nhibernate/ which i am already using. Martin On 1 Mar., 14:52, Diego Mijelshon di...@mijelshon.com.ar wrote: I *believe* this will work with 3.x (trunk).

[nhusers] Re: Collection Mapping Help

2010-03-01 Thread Corey Coogan
I think I've very close, but unfortunately not there yet. I made the changes suggested by Diego but I'm still getting the Index Out of Range exception. I don't have a version column, but am fighting for one. Could that be what's causing the issue? On Feb 25, 7:11 pm, Corey Coogan

[nhusers] Re: How to determine the .Net type for persistent object (join subclass) without a full load of the object itself?

2010-03-01 Thread Vinogradniy Eugeny
///summary /// Returns class by descriminator. summary public static Type GetInstanceClassTBaseType(this ISession session, object discriminatorValue) { if (session == null) throw new ArgumentNullException(session); if (discriminatorValue == null) throw new

Re: [nhusers] Dirty checking

2010-03-01 Thread nadav s
there might be a better way that i don't know of... but what i know is that you can implement an interceptor (derrive from NHibernate.EmptyInterceptor) you can then watch the list of methods you can override i know you can tell NH weather the entity is new - override IsTransient and do your check,

Re: [nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread nadav s
most of the stuff is built in (taking the value out of a sequence, having a version property, even running named queries (such as stored procedures i belive). the stuff that are not built in, you can implement very simply, and it won't be alot of code in any way. the thing is, what you'll get out

[nhusers] NHibernate 3 Query...

2010-03-01 Thread Nvrnight
So we've updated our NHibernate to 3 so we could use the group by syntax in a query, but I've come across a few stumbling blocks along the way. IQueryableActivity query2 = from a in session.LinqActivity() select a; IQueryableActivity query3 = from a in session.QueryActivity() select a; These are

Re: [nhusers] Re: Lazyload a Component ?

2010-03-01 Thread Diego Mijelshon
You can get the binaries at http://hornget.net/packages/orm/nhibernate/nhibernate-trunk, or checkout the sources from https://nhibernate.svn.sourceforge.net/svnroot/nhibernate/trunk/nhibernate Diego On Mon, Mar 1, 2010 at 11:52, Martin From f...@pc.dk wrote: Thanks for the quick reply.

[nhusers] NHibernate Caching Dilemma

2010-03-01 Thread Kent Boogaart
If anyone from this group has any thoughts on my question (http:// stackoverflow.com/questions/2356965/nhibernate-caching-dilemma) I'd be most grateful. Kent -- You received this message because you are subscribed to the Google Groups nhusers group. To post to this group, send email to

[nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread 3P
I will get parsing of record and unit of work - UoW is more important. I would like UI code working with domain objects as simple as possible. Of course I could just call SP's and receive DataSets but that's not what I would like to do. I already created my own record parser but You probably know

Re: [nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread Fabio Maulo
2010/3/1 3P piotrpe...@poczta.onet.pl I don't understand your question. I want to have object model of my database and be able to DDD. I don't see how having SP's or no changes anything. I want... perhaps you would but after write all SPs what you have is a DataModel wrote in the stone (is

Re: [nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread Fabio Maulo
what you are looking for is not NH http://ibatis.apache.org/dotnet.cgi http://ibatis.apache.org/dotnet.cgiBefore choose NH you can study it a little bit... I have to insert to/update other tables based on record inserting. How do You do this using NHibernate? We are doing it with a completely and

[nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread 3P
I would like to do it 100% DDD but I can't. The DB is there, SP's are there and I'm not my boss :) So I'd like to have as much DDD as possible. On 1 Mar, 17:14, Fabio Maulo fabioma...@gmail.com wrote: 2010/3/1 3P piotrpe...@poczta.onet.pl I don't understand your question. I want to have

[nhusers] Re: Will NHibernate handle this?

2010-03-01 Thread Jason Meckley
NH isn't required for DDD. In your scenario i think integrating NH might be more trouble than it's worth. you are already using transaction scripts for writes, why not use them for reads as well? abstract the scripts with a Repository/DAO and you're set. granted NH would make it easier, but if

Re: [nhusers] Dirty checking

2010-03-01 Thread Olivier Coanet
Hi Peter, You can activate select-before-update=true in your class mapping or use session.Merge(entity) instead of session.SaveOrUpdate(enity). Then only modified entities will be updated. You can also activate dynamic-update=true in your class mapping so only modified columns will be updated.

[nhusers] Problems building NHibernate.Search

2010-03-01 Thread Arnis L.
Used svn to retrieve source https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/ (tried hornGet, but it shows The build tool Horn.Core.NAntBuildTool failed building the nhibernate.search package error) Tried to rebuild \branches\NHibernate.Search-NH3.x \NHibernate.Search.csproj - project

[nhusers] Re: Castle DLLs not properly being propagated to other projects

2010-03-01 Thread Tom Bushell
I didn't compile the Castle DLLs - I downloaded them as part of Fluent NHibernate. Are you saying that a re-compile of the Castle source should fix this problem? Where can I get the source? I just spent quite a bit of time googling for it, with no luck. Any idea why the Castle DLLs don't

[nhusers] Re: Slowdown After Upgrading from 1.2.1 to 2.1.2

2010-03-01 Thread jason.hill
We have set FlushMode to Commit...how does this affect things? Just to clarify, even individual Session.Gets need to be wrapped in a transaction? On Mar 1, 11:25 pm, sbohlen sboh...@gmail.com wrote: Depends on the setting of FlushMode re: whether you must do it explicitly or not, but in

[nhusers] Linq Issue in trunk

2010-03-01 Thread allan.ritc...@gmail.com
I'm getting the following with the latest trunk version. Looks like a minor version mismatch in Remotion. I could only find the past minor build on codeplex. System.MissingMethodException: Method not found: 'System.Collections.ObjectModel.ReadOnlyCollection`1!!0

[nhusers] Re: Linq Issue in trunk

2010-03-01 Thread allan.ritc...@gmail.com
Found an update 1.13.48.1 that seems to have fixed this issue On Mar 1, 8:57 pm, allan.ritc...@gmail.com allan.ritc...@gmail.com wrote: I'm getting the following with the latest trunk version.  Looks like a minor version mismatch in Remotion.  I could only find the past minor build on

[nhusers] Re: Slowdown After Upgrading from 1.2.1 to 2.1.2

2010-03-01 Thread Jason Meckley
yes, all reads and writes should happen within a transaction. On Mar 1, 6:22 pm, jason.hill jason.hi...@gmail.com wrote: We have set FlushMode to Commit...how does this affect things? Just to clarify, even individual Session.Gets need to be wrapped in a transaction? On Mar 1, 11:25 pm,

[nhusers] Re: NHibernate streaming

2010-03-01 Thread pebrian27
On Mar 1, 8:33 pm, sbohlen sboh...@gmail.com wrote: Sorry, I just re-read your post a bit more closely...the query can take HOURS? Wondering what the user is doing while this is running?  Getting lunch? :) Seriously, a query that could take hours is really more a 'report' and should

Re: [nhusers] NHibernate Caching Dilemma

2010-03-01 Thread Fabio Maulo
what happen? lazy support request ? 2010/3/1 Kent Boogaart ken...@internode.on.net If anyone from this group has any thoughts on my question (http:// stackoverflow.com/questions/2356965/nhibernate-caching-dilemma) I'd be most grateful. Kent -- You received this message because you are

[nhusers] Using access=noop causes collection to be deleted

2010-03-01 Thread acl123
I am using access=noop to try and create a query-only set, like this: set access=noop name=Bars table=FooBarManyToManyRelationshipTable key column=FooId / many-to-many class=MyProject.Bar column name=BarId /

Re: [nhusers] Using access=noop causes collection to be deleted

2010-03-01 Thread Fabio Maulo
not enough info, try again 2010/3/2 acl123 andrewclawre...@gmail.com I am using access=noop to try and create a query-only set, like this: set access=noop name=Bars table=FooBarManyToManyRelationshipTable key column=FooId / many-to-many