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
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
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
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
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
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
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
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
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
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
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
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
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
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).
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
///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
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,
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
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
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.
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
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
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
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
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
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
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.
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
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
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
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
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
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,
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
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
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 /
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
37 matches
Mail list logo