http://fabiomaulo.blogspot.com/2008/10/less-than-few-is-gof.htmlThe other
approach if you want work with interfaces and dynamic-entities (a little bit
more typed).
2009/3/5 Fabio Maulo
> Here the answer
> http://fabiomaulo.blogspot.com/2008/10/less-than-gof-is-hbm.html
>
> 2009/3/5 joel.barber
Here the answer
http://fabiomaulo.blogspot.com/2008/10/less-than-gof-is-hbm.html
2009/3/5 joel.barber
>
> Does anyone out there know how to do the following?
>
> I would like to store values retrieved from the database with
> NHibernate in a dictionary instead of using class properties. For
> ex
Does anyone out there know how to do the following?
I would like to store values retrieved from the database with
NHibernate in a dictionary instead of using class properties. For
example, let's say we have a table Employee with three fields: Id,
FirstName, and LastName.
I would like to have a c
Here's the scenario :
im developing an events site, and the event entity defines a
recurrence pattern which the event service uses to populate the
following table :
cm_event_occurrence
eventId int
eventStart DateTime
For the event listing, i want to be able to list events by date, but
h
its 3 catalog (ms sql) or 3 mdb
(ms access)
On Mar 4, 7:48 pm, Fabio Maulo wrote:
> 2009/3/4 nobodybutca
>
>
>
> > Hi group,
>
> > kinda new with nhibernate, just learning the curve just today.
>
> > How do i configure 3 database on hibernate.cfg.xml?
> 3 RDBMS or 3 catalogs or 3 schemas ?
>
Ah... I, who is not using Oracle in any project, was the only one who tried
to provide a failing test for NH-847...
As I said some weeks ago... the NH+Oracle community should be a little be
more reactive...
Wake up guys.
2009/3/4 Fabio Maulo
> The issue NH-847 has a question as last comment.That
The issue NH-847 has a question as last comment.That issue has 15 watchers,
19 votes, some requests in this mailing-list and now your re-fresh of the
same request.
Perhaps some one of you guys can answer that question.
I'm waiting an answer since 2009/02/09.
2009/3/4 Brendan Kowitz
>
> Built
Built-in support, so without the need to subclass and hack in some
changes.
Eg.
http://groups.google.com/group/nhusers/browse_thread/thread/1e5c71502dd547f0/d3bc917ad7c9ca32?hl=en#d3bc917ad7c9ca32
I'm not reliant on this, just curious.
Brendan.
On Mar 4, 10:45 pm, Fabio Maulo wrote:
> what me
As I know, the referenced entities in the bag are only evicted if they
are mapped with cascade=all. That's the reason why I stopped using it.
If I where you, I wouldn't use evict and refresh to discard changes.
As I understand it, it is not designed to couple it directly to user
actions. Evict ha
Thanks Scott.All FNH users should trust in FNH but before say "NHibernate
BUG" they should check the mapping generated by FNH.
This work is to improve FNH.
2009/3/4 Scott Belchak
> Alright, enough fun at my expense, i am thoroughly embarrased. I see the
> problem now and shouldnt have trusted f
File a bug report on that project and attach your fluent mapping.(on their
list of course)
Tuna Toksöz
http://tunatoksoz.com
http://turkiyealt.net
http://twitter.com/tehlike
Typos included to enhance the readers attention!
On Wed, Mar 4, 2009 at 10:23 PM, Scott Belchak wrote:
> Alright, enou
Alright, enough fun at my expense, i am thoroughly embarrased. I see the
problem now and shouldnt have trusted fluent nhibernate (or my use of it for
that matter) to do the right thing.
Thanks for the help!
On Wed, Mar 4, 2009 at 2:21 PM, Tuna Toksoz wrote:
> I really liked this, especially th
I really liked this, especially the HiLo generator part.
Tuna Toksöz
http://tunatoksoz.com
http://turkiyealt.net
http://twitter.com/tehlike
Typos included to enhance the readers attention!
On Wed, Mar 4, 2009 at 10:20 PM, Fabio Maulo wrote:
>
> BTW "NHibernate Inheritance bug with Critiera",
2009/3/4 Scott Belchak
> Should the ID be set to the subclasses key? Or should it not even exist at
> all?
BTW "NHibernate Inheritance bug with Critiera", "I am stumped"
bah?!?!?!?
Some base concepts of ORM is available here
http://nhusers.googlegroups.com/web/WhitePaper_Ma
Should the ID be set to the subclasses key? Or should it not even exist at
all?
On Wed, Mar 4, 2009 at 1:58 PM, Fabio Maulo wrote:
> I think you have a problem with the duplication/triplication of the
> property "Id" in each subclass
>
> 2009/3/4 Scott Belchak
>
> Sorry,
>>
>>
>> > assembly="
I think you have a problem with the duplication/triplication of the property
"Id" in each subclass
2009/3/4 Scott Belchak
> Sorry,
>
>
> assembly="RedBranch.LeagueFinder.Model"
> namespace="RedBranch.LeagueFinder.Model">
>
>
>
>
>
>
>
>
>
>
Sorry,
var criteria = Session.CreateCriteria(typeof(League))
.Add(Expression.Eq("Id", id))
.Add(Expr
Our model also has right around a thousand tables and creating the session
factory takes about 20 seconds. (using HBM files for mapping here)
From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of
Ayende Rahien
Sent: Wednesday, March 04, 2009 12:52 PM
To: nhusers@googlegr
Please show the real mapping, and the NH query that you try to use.
On Wed, Mar 4, 2009 at 10:03 AM, Scott Belchak wrote:
> I am stumped. I've been over this too many times and it's time for some
> extra eyes on my problem.
>
> I'm using FluentNHibernate for my mappings.
>
> The problem that I a
Thomas,I have used it successfully with literally thousands of tables.
On Wed, Mar 4, 2009 at 5:07 AM, Thomas Koch wrote:
>
> Hi - we have a legacy web application which is to be ported to use
> NHibernate 2.0.
>
> My question is whether or not some you have any experience with using
> NHibernat
2009/3/4 Marc Climent
>
> Done.
>
>
> http://nhforge.org/wikis/howtonh/create-a-custom-message-interpolator-for-nhibernate-validator.aspx
Friends, this is the right spirit! if you care about NH's projects future.
The NH team can use his "free time" to work in NH projects (mean NH +
Contrib) an
I am stumped. I've been over this too many times and it's time for some
extra eyes on my problem.
I'm using FluentNHibernate for my mappings.
The problem that I am having is that when I am querying my League table for
a League that has a specified ID, the generated SQL tries to match the ID up
wi
Done.
http://nhforge.org/wikis/howtonh/create-a-custom-message-interpolator-for-nhibernate-validator.aspx
On 4 mar, 17:09, Fabio Maulo wrote:
> 2009/3/4 Marc Climent
>
> > If someone thinks that it's interesting to put this on the wiki, I
> > have no objections and I can do it myself.
>
> Ple
On an application I used to work on we had over 600 tables all mapped with
NHibernate. Worked like a charm.
On Wed, Mar 4, 2009 at 8:07 AM, Thomas Koch wrote:
>
> Hi - we have a legacy web application which is to be ported to use
> NHibernate 2.0.
>
> My question is whether or not some you have
Thomas Koch wrote:
> Hi - we have a legacy web application which is to be ported to use
> NHibernate 2.0.
>
> My question is whether or not some you have any experience with using
> NHibernate on a web-application with approx. 240 tables? The 240
> tables is including both many-to-many tables and
Wait for the next release, where we'll have fluent configuration,
serialization on configuration ( can be done now, but i am postponing it on
my side).
With does, it will take around 5 secs, i guess.
One way to make them scale for now is that you can merge hbm xmls as a build
action(i remember see
We have 171 tables and 155 mapping files and our database is over 40
GB. NHibernate startup is taking under 10 seconds. We've never had
any perf problems due to NHibernate. Plenty of them due to other
reasons, but none due to NHibernate. :-)
Cheers,
John
On Mar 4, 1:07 pm, Thomas Koch wrote
2009/3/4 Marc Climent
> If someone thinks that it's interesting to put this on the wiki, I
> have no objections and I can do it myself.
Please.
--
Fabio Maulo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"nhu
I posted an entry on my blog about the subject, I hope this helps:
http://codelog.climens.net/2009/03/04/nhibernate-validator-custom-messages/
If someone thinks that it's interesting to put this on the wiki, I
have no objections and I can do it myself.
On Mar 3, 6:09 pm, s_tristan wrote:
> Can
I'm having the same problem. Is there any solution where I don't need
to redesign application?
On Feb 20, 10:01 pm, Germán Schuager wrote:
> Use composition instead of inheritance.
>
> http://www.cs.sjsu.edu/faculty/pearce/modules/patterns/analysis/Actor...
>
> On Fri, Feb 20, 2009 at 3:59 PM, d
OK, after hours of trial & error I have a solution, but do not
understand why it did not work before.
What happens.
There is UI with bound data. the user enters something leave the edit
field end later decides:
-either to save the data or
-to discard changes
what I did was:
- before the data was
2009/3/4 Robin Nadeau
> We already have entities, developed in VB .NET, being used by custom
> mappers. Those entities were developed with infer on, strict off, and
> explicit off, meaning that it would be a pain to convert to C# with most
> automatic tools. Also, it would be difficult to convinc
We already have entities, developed in VB .NET, being used by custom
mappers. Those entities were developed with infer on, strict off, and
explicit off, meaning that it would be a pain to convert to C# with most
automatic tools. Also, it would be difficult to convince management that we
should take
Hi Fabio - I haven't managed to set of automated load tests of the NH
schema yet, but I think its a good idea. I will try to get that done.
Hi free.fr - thanks for the success story. I just needed that bit of
information.
Regards
Thomas
On 4 Mar., 14:51, f...@free.fr wrote:
> Yes. And Perfectl
Concerning 2008, we use it based on SQL2005 dialect and it is just working fine.
There are no big differences between 2005 and 2008.
Selon Fabio Maulo :
> 2009/3/4 nobodybutca
>
> >
> > Hi group,
> >
> > kinda new with nhibernate, just learning the curve just today.
> >
> > How do i configure
Yes. And Perfectly.
We have a 600+ entities (at least 600 are core schema)
The only things is that you will need to be very attentive to load options and
relationship mappings.
The initial load time (Buiding the session factory) is 5~10 secondes, not much,
but you only do it one time.
Selon
Did you try run NH-Tests ?Well there we are creating and destroying records
in each test, table+sessionFactory+configuration in each fixture
and, obviously, we are testing something with persistence.
All tests (more than 1600) are running in less than 15 minutes.
I think that even with 1 table
Hi Fabio - I fully agree with you that succes stories are important.
I already find NHibernate to be very useful - I simply needed some
assurance/input/experience with regard to initial load times
etc. :-)
Thomas
On 4 Mar., 14:29, Fabio Maulo wrote:
> I saw systems using NH with much more
I saw systems using NH with much more than 240 tables.
Catharsis:
With this question I hope somebody can understand why I'm insisting with
"success story".
Phrases as:
"If it is not for money it is not good"
"OSS is good only for high-school projects"
"ORM is slow, SP is fast"
"Does NH scale in a
2009/3/4 Stefan Steinegger
>
> var attachedObject = session.Merge(detachedObject);
> Assert.IsTrue(session.Contains(attachedObject));
>
> Don't use attachedObject anymore, it is not in the session an must not
> be referenced by any attached instance.
>
> I don't really understand why you use Deta
Hi - we have a legacy web application which is to be ported to use
NHibernate 2.0.
My question is whether or not some you have any experience with using
NHibernate on a web-application with approx. 240 tables? The 240
tables is including both many-to-many tables and entity tables.
Does it scale?
Note that Merge has a return value. The returned value is the instance
in the session. This is because there could be already an instance in
the session, which will be initialized with the values from your
object (what actually is the merging).
var attachedObject = session.Merge(detachedObject);
CurrentSessionContext + webModule.NHibernate.Burrow
Rhino Tools
Castle facilities
S#arp Architecture
CodeProject (look for NHibernate)
and some others if you click "Search the Deep Grok!" from www.nhforge.org
2009/3/4 dacanetdev
>
> I'm really new to NHibernate and now I'm working in a web appli
I'm really new to NHibernate and now I'm working in a web application
(.NET 2.0) using NHibernate. Could you please give an advice about how
works the interaction between ASP.NET and NHibernate with the Session,
what is the best practice because I don´t think is a good idea to have
a using NHiber
what mean "real" ?
2009/3/4 Brendan Kowitz
>
> Thanks for the good news. +1 to continued Oracle support :)
>
> On a side note, is there any 'real' support for oracle stored procs
> with these new dialects?
>
> Brendan.
>
> On Mar 4, 12:06 pm, Fabio Maulo wrote:
> > Hi Mike.
> > I'm happy becaus
Seriously, if you can help it, find a host that will allow you to
switch domains into Full trust. Some will upon request. I've tried the
medium trust thing for a while, it can 'mostly' work but its not a
great experience.
On Mar 3, 10:55 pm, ilker wrote:
> Hi,
>
> Is there any example nh works u
Thanks for the good news. +1 to continued Oracle support :)
On a side note, is there any 'real' support for oracle stored procs
with these new dialects?
Brendan.
On Mar 4, 12:06 pm, Fabio Maulo wrote:
> Hi Mike.
> I'm happy because you can work with new ORACLE dialects...
> 3 lines talking abo
I have a Company object with a one way association with Employee
objects, one-to-many from Company to Employee. Employee has no
reference back to Company.
Can I retrieve Employee objects with ICriteria, finding Employees
created after a certain data working for a Company searching with
Company na
2009/3/4 nobodybutca
>
> Hi group,
>
> kinda new with nhibernate, just learning the curve just today.
>
> How do i configure 3 database on hibernate.cfg.xml?
3 RDBMS or 3 catalogs or 3 schemas ?
3 RDBMS with 3 hibernate.cfg.xml.
> Is the support for MS2008 is enable now?
When don't ?
--
Hi group,
kinda new with nhibernate, just learning the curve just today.
How do i configure 3 database on hibernate.cfg.xml?
Is the support for MS2008 is enable now?
br,
nobody
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
Does anyone know if it is possible to force a column to be updated
even when the contents haven’t changed?
Sounds stupid but it is because I have a trigger to generate an audit
trail that must carry select data over. It would be great if there was
an attribute on the property element that co
That's interesting. I'll take a look at that as well, thank you again
Tuna.
On Mar 2, 4:31 pm, Tuna Toksoz wrote:
> My guess is that you can have different function implementations for
> different dialects by registering your function
>
> RegisterFunction("lower", new StandardSQLFunction("lower"
I did some tracing in the NHibernate Code.
The exception is caused by the CheckUniqueness method in
StatefulPersistenceContext class. When it enters the GetEntity method
the line entitiesByKey.TryGetValue(key, out result); returns a result
which later causes the exception.
It checks before wheth
53 matches
Mail list logo