Tag Archives: NHibernate

A Case We Shouldn’t Use Stored Procedure’s In

By | June 9, 2009

We are working on this big project at work in which several teams are assigned to different modules. The modules are, naturally, overlapping in certain areas where they they need to interact with each other through API’s. One of these modules is central and crucial to the rest of the modules, the dependency is very… Read More »

Importance of Documentation

By | December 26, 2008

  Lately we have decided in Bunian to move on to NHibernate 2.0, and the contributor assigned to the move started out, only to send an email one day after: “THERE IS NO DOCUMENTATION!’.We had errors as a result to the move which couldn’t be fixed without a documentation explaining why this happened. After searching… Read More »

Introduction to NHibernate Session at Jordev Was Good

By | December 5, 2008

The feedback was very good, and I was glad that everybody liked it. Jordev is really moving ahead, and I am very excited being part of it 🙂 Below is the slide show (it’s an enhanced version from my previous one): [slideshare id=821222&doc=introductiontonhibernate-1228487480885456-9&w=425] Code is the same of the previous one which you can download… Read More »

My First Talk at JorDev .net

By | November 21, 2008

  JorDev .net is a .net user group founded by enthusiastic Jordanian IT professionals. On Wednesday the 26th of November I will be doing my first session of a series about NHibernate. Details of talk is here: Overview NHibernate is an Object-relational mapping (ORM) solution for the Microsoft .NET platform. it provides an easy to… Read More »

NHibernate Inverse attribute

By | August 22, 2008

I had to read documentation, articles, many blog entries and go into discussions with colleagues… all to get the root of this ambiguous attribute of NHibernate, it is trickey! This blog entry is another trial to explain the attribute, but with taking one more detailed step into the explanation. NHibernate is meant to persist objects… Read More »

Mapping Enumeration of type int in NHibernate

By | August 19, 2008

I wanted to map an integer enumeration type in NHibernate, I googled “mapping enumeration in NHibernate” and the best explanation was of Jeremy Miller in his post here. But as it appears (and according to my understanding) that the enumeration type should be mapped to a database column of characters type (varchar, char,…etc). What if… Read More »

My “Introduction to NHibernate” presentation and slides

By | July 2, 2008

I have delivered the presentation I talked about in my previous post here. Actually it was pretty simple and straightforward, the slides them selves don’t have code content; all the code was shown in VS directly (I always found it better to see the code in its really environment to better understand). The attendees were… Read More »

Columns’ case-sensitivity in NHibernate

By | June 28, 2008

The other day I wanted to create an HQL query to retrieve data from one object (WorkOrderFault) that has many-to-many relation with another. so I created the following: ISession session = NHibernateOrmSessionFactory.CurrentNHibernateSession; IQuery query = session.CreateQuery(    “select wof from WorkOrderFault wof join wof.WorkOrderTechnicians as tech where tech.Id = 43334”); IList<WorkOrderFault> objects = query.List<WorkOrderFault>(); The query… Read More »