Tag Archives: orm

NHibernate dirty problem, weird updates in NHprof

Upgrading to NH3 from NH2.1.2 We have recently update to NHibernate 3 in one of our projects. While testing I was suddenly seeing some weird UPDATE statements in NHprof. It seemed like the NHibernate IsDirty detection had changed. After some … Continue reading

Posted in Development | Tagged , , , , | 1 Comment

NHibernate CompositeId and GetHashCode SELECT N+1 problem

I was looking in my NHProf log and got a lot of SELECT request. To many and I thought I was having a SELECT N+1 problem. Using the “Stack Trace” in NHprof I identified a call being made to GetHashCode() … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

Multiple Configurations for NHibernate (HybridSessionBuilder)

  I have been using Castle Windsor and NHibernate for some months now, so I am a bit new and still learning. But then again, it is learning developers like me, that asks all the questions. This post is also … Continue reading

Posted in Development | Tagged , , , | 2 Comments

NHibernate – many-to-many relationship with data attached

I just found a good blog post about the may-to-many relationship in NHibernate. The configuration sis done in Fluent NHibernate. http://codebetter.com/blogs/kyle.baley/archive/2008/12/24/many-to-many-relationships-with-data-attached-in-nhibernate.aspx

Posted in Development | Tagged , , , | Leave a comment

Ayende explains cascading with NHibernate

To continue my little "post with good links"… here is a good article by Ayende, explaining cascadin with NHibernate: http://ayende.com/Blog/archive/2006/12/02/NHibernateCascadesTheDifferentBetweenAllAlldeleteorphansAndSaveupdate.aspx Here is the basics: Here is what each cascade option means: none – do not do any cascades, let the … Continue reading

Posted in Software | Tagged , , , , | Leave a comment

Learning NHibernate

NHibernate is a port of Hibernate Core for Java to the .NET Framework. It handles persisting plain .NET objects to and from an underlying relational database. Given an XML description of your entities and relationships, NHibernate automatically generates SQL for … Continue reading

Posted in Development, Software | Tagged , , , | Leave a comment