<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>NHibernate on Emad Alashi</title>
    <link>https://emadashi.com/tags/nhibernate/</link>
    <description>Recent content in NHibernate on Emad Alashi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 09 Jun 2009 12:51:18 +0000</lastBuildDate>
    <atom:link href="https://emadashi.com/tags/nhibernate/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Case We Shouldn’t Use Stored Procedure’s In</title>
      <link>https://emadashi.com/2009/06/a-case-we-shouldnt-use-stored-procedures-in/</link>
      <pubDate>Tue, 09 Jun 2009 12:51:18 +0000</pubDate>
      <guid>https://emadashi.com/2009/06/a-case-we-shouldnt-use-stored-procedures-in/</guid>
      <description>&lt;p&gt;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&amp;rsquo;s.&lt;/p&gt;
&lt;p&gt;One of these modules is central and crucial to the rest of the modules, the dependency is very high that the team has to provide many API&amp;rsquo;s. Certain API&amp;rsquo;s was needed by different modules; our team needed a list of entity X, and another team also wanted a list of entity X, BUT…we had different criteria!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Importance of Documentation</title>
      <link>https://emadashi.com/2008/12/importance-of-documentation/</link>
      <pubDate>Fri, 26 Dec 2008 11:25:15 +0000</pubDate>
      <guid>https://emadashi.com/2008/12/importance-of-documentation/</guid>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2008/12/documentation.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; style=&#34;border-width:0;&#34; height=&#34;251&#34; alt=&#34;documentation&#34; src=&#34;https://eashi.files.wordpress.com/2008/12/documentation-thumb.jpg&#34; width=&#34;174&#34; align=&#34;right&#34; border=&#34;0&#34; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Lately we have decided in &lt;a href=&#34;http://www.codeplex.com/bunian&#34;&gt;Bunian&lt;/a&gt; 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!&amp;rsquo;.&lt;br&gt;
We had errors as a result to the move which couldn&amp;rsquo;t be fixed without a documentation explaining why this happened.&lt;/p&gt;
&lt;p&gt;After searching for a while, we found two resources of the new documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;a wiki help that is hosted on &lt;a href=&#34;http://knol.google.com/&#34;&gt;Google Knol&lt;/a&gt;:&lt;br&gt;
&lt;a href=&#34;http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21&#34; title=&#34;http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21#&#34;&gt;http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21#&lt;/a&gt;&lt;br&gt;
Not really appealing to be used extensively; no smooth flow between chapters, frames dazzle the eyes, no table of contents, but surely a great step forward for a documentation that is maintained by the community&lt;/p&gt;</description>
    </item>
    <item>
      <title>Introduction to NHibernate Session at Jordev Was Good</title>
      <link>https://emadashi.com/2008/12/introduction-to-nhibernate-session-at-jordev-was-good/</link>
      <pubDate>Fri, 05 Dec 2008 13:29:47 +0000</pubDate>
      <guid>https://emadashi.com/2008/12/introduction-to-nhibernate-session-at-jordev-was-good/</guid>
      <description>&lt;p&gt;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 🙂&lt;/p&gt;
&lt;p&gt;Below is the slide show (it&amp;rsquo;s an enhanced version from my &lt;a href=&#34;http://eashi.wordpress.com/2008/07/02/my-introduction-to-nhibernate-presentation-and-slides/&#34;&gt;previous one&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.slideshare.net/slideshow/introduction-to-nhibernate-presentation/821222&#34;&gt;Introduction To NHibernate (SlideShare)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Code is the same of the previous one which you can download from &lt;a href=&#34;http://www.freedrive.com/file/395364,emadnhibernatepresentation.zip&#34;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>My First Talk at JorDev .net</title>
      <link>https://emadashi.com/2008/11/my-first-talk-at-jordev-net/</link>
      <pubDate>Fri, 21 Nov 2008 18:31:49 +0000</pubDate>
      <guid>https://emadashi.com/2008/11/my-first-talk-at-jordev-net/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;JorDev Logo&#34; loading=&#34;lazy&#34; src=&#34;http://eashi.files.wordpress.com/2008/11/jordevlogo.png&#34;&gt;
&lt;img alt=&#34;NHibernate Logo&#34; loading=&#34;lazy&#34; src=&#34;http://eashi.files.wordpress.com/2008/11/nhib-logo04.gif&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://jordev.net/JordevCommunity/About.aspx&#34;&gt;JorDev .net&lt;/a&gt; is a .NET user group founded by enthusiastic Jordanian IT professionals. On Wednesday, November 26, I will be doing my first session in a series about NHibernate.&lt;/p&gt;
&lt;h2 id=&#34;talk-details&#34;&gt;Talk Details&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Overview: NHibernate is an object-relational mapping (ORM) solution for the Microsoft .NET platform. It provides an easy-to-use framework for mapping an object-oriented domain model to a traditional relational database. Its purpose is to relieve the developer from a significant amount of relational data persistence-related programming tasks. NHibernate is free open source software distributed under the GNU Lesser General Public License.&lt;/li&gt;
&lt;li&gt;Target audience: .NET developers, software designers, software engineers, and software architects.&lt;/li&gt;
&lt;li&gt;Date: Wednesday, November 26, 2008.&lt;/li&gt;
&lt;li&gt;Location: MIC (Microsoft Innovation Center, Royal Scientific Society Building, 3rd Floor).&lt;/li&gt;
&lt;li&gt;Time: 6:30 pm to 8:30 pm (Amman, Jordan local time).&lt;/li&gt;
&lt;li&gt;For more info:
&lt;ul&gt;
&lt;li&gt;Mohamed Saleh: 0788716457&lt;/li&gt;
&lt;li&gt;Ayman Farouk: 0795727344&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;reminders&#34;&gt;Reminders&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;http://calendar.live.com/calendar/calendar.aspx?rru=addevent&amp;amp;dtstart=20081126T163000Z&amp;amp;dtend=20081126T183000Z&amp;amp;summary=NHibernate&amp;#43;Data&amp;#43;Access&amp;#43;Technology&amp;#43;Session&amp;#43;%5b1%5d&amp;amp;location=Royal&amp;#43;Scientific&amp;#43;Society&amp;#43;Building%2c&amp;#43;3rd&amp;#43;Floor&amp;amp;description=NHibernate&amp;#43;is&amp;#43;an&amp;#43;Object-relational&amp;#43;mapping&amp;#43;%28ORM%29&amp;#43;solution&amp;#43;for&amp;#43;the&amp;#43;Microsoft&amp;#43;.NET&amp;#43;platform.&amp;#43;it&amp;#43;provides&amp;#43;an&amp;#43;easy&amp;#43;to&amp;#43;use&amp;#43;framework&amp;#43;for&amp;#43;mapping&amp;#43;an&amp;#43;object-oriented&amp;#43;domain&amp;#43;model&amp;#43;to&amp;#43;a&amp;#43;traditional&amp;#43;relational&amp;#43;database.&amp;#43;Its&amp;#43;purpose&amp;#43;is&amp;#43;to&amp;#43;relieve&amp;#43;the&amp;#43;developer&amp;#43;from&amp;#43;a&amp;#43;significant&amp;#43;amount&amp;#43;of&amp;#43;relational&amp;#43;data&amp;#43;persistence-related&amp;#43;programming&amp;#43;tasks.%0a...%0d%0a%0d%0ahttp%3a%2f%2fjordevnhibernate1.events.live.com%2f&#34;&gt;Live Calendar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://www.facebook.com/event.php?eid=45818242564&#34;&gt;Facebook event&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://jordevnhibernate1.events.live.com/event.ics&#34;&gt;Outlook Calendar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://www.google.com/calendar/event?action=TEMPLATE&amp;amp;text=NHibernate&amp;#43;Data&amp;#43;Access&amp;#43;Technology&amp;#43;Session&amp;#43;%5b1%5d&amp;amp;dates=20081126T163000Z%2f20081126T183000Z&amp;amp;location=Royal&amp;#43;Scientific&amp;#43;Society&amp;#43;Building%2c&amp;#43;3rd&amp;#43;Floor&amp;amp;sprop=http%3a%2f%2fjordevnhibernate1.events.live.com%2f&amp;amp;details=NHibernate&amp;#43;is&amp;#43;an&amp;#43;Object-relational&amp;#43;mapping&amp;#43;%28ORM%29&amp;#43;solution&amp;#43;for&amp;#43;the&amp;#43;Microsoft&amp;#43;.NET&amp;#43;platform.&amp;#43;it&amp;#43;provides&amp;#43;an&amp;#43;easy&amp;#43;to&amp;#43;use&amp;#43;framework&amp;#43;for&amp;#43;mapping&amp;#43;an&amp;#43;object-oriented&amp;#43;domain&amp;#43;model&amp;#43;to&amp;#43;a&amp;#43;traditional&amp;#43;relational&amp;#43;database.&amp;#43;Its&amp;#43;purpose&amp;#43;is&amp;#43;to&amp;#43;relieve&amp;#43;the&amp;#43;developer&amp;#43;from&amp;#43;a&amp;#43;significant&amp;#43;amount&amp;#43;of&amp;#43;relational&amp;#43;data&amp;#43;persistence-related&amp;#43;programming&amp;#43;tasks.%0a...%0d%0a%0d%0ahttp%3a%2f%2fjordevnhibernate1.events.live.com%2f&#34;&gt;Google Calendar&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>NHibernate Inverse attribute</title>
      <link>https://emadashi.com/2008/08/nhibernate-inverse-attribute/</link>
      <pubDate>Fri, 22 Aug 2008 14:22:26 +0000</pubDate>
      <guid>https://emadashi.com/2008/08/nhibernate-inverse-attribute/</guid>
      <description>&lt;p&gt;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!&lt;br&gt;
This blog entry is another trial to explain the attribute, but with taking one more detailed step into the explanation.&lt;/p&gt;
&lt;p&gt;NHibernate is meant to persist objects as well as to manage their relations to each other, lets take a look at the following example of Parent and Child classes:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mapping Enumeration of type int in NHibernate</title>
      <link>https://emadashi.com/2008/08/mapping-enumeration-of-type-int-in-nhibernate/</link>
      <pubDate>Tue, 19 Aug 2008 07:45:38 +0000</pubDate>
      <guid>https://emadashi.com/2008/08/mapping-enumeration-of-type-int-in-nhibernate/</guid>
      <description>&lt;p&gt;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 &lt;a href=&#34;http://codebetter.com/blogs/jeremy.miller/archive/2006/02/20/138732.aspx&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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).&lt;br&gt;
What if the database column was int? well…do exactly like what jeremy did except simply use “&lt;strong&gt;NHibernate.Type.PersistentEnumType&lt;/strong&gt;” instead of “&lt;strong&gt;NHibernate.Type.EnumStringType&lt;/strong&gt;“.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My “Introduction to NHibernate” presentation and slides</title>
      <link>https://emadashi.com/2008/07/my-introduction-to-nhibernate-presentation-and-slides/</link>
      <pubDate>Wed, 02 Jul 2008 16:34:04 +0000</pubDate>
      <guid>https://emadashi.com/2008/07/my-introduction-to-nhibernate-presentation-and-slides/</guid>
      <description>&lt;p&gt;I have delivered the presentation I talked about in my previous post &lt;a title=&#34;what is next&#34; href=&#34;http://eashi.wordpress.com/2008/06/21/what-is-next-2/&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Actually it was pretty simple and straightforward, the slides them selves don&amp;rsquo;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).&lt;br&gt;
The attendees were handful, but if felt really great when they expressed how excited they were about the whole thing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Columns’ case-sensitivity in NHibernate</title>
      <link>https://emadashi.com/2008/06/columns-case-sensitivity-in-nhibernate/</link>
      <pubDate>Sat, 28 Jun 2008 09:29:44 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/columns-case-sensitivity-in-nhibernate/</guid>
      <description>&lt;p&gt;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:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-csharp&#34; data-lang=&#34;csharp&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ISession session = NHibernateOrmSessionFactory.CurrentNHibernateSession;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;IQuery query = session.CreateQuery(
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;select wof from WorkOrderFault wof join wof.WorkOrderTechnicians as tech where tech.Id = 43334&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;IList&amp;lt;WorkOrderFault&amp;gt; objects = query.List&amp;lt;WorkOrderFault&amp;gt;();
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The query ran successfully, and I got my results.&lt;/p&gt;
&lt;p&gt;Then I wanted to use paging and get certain amount of results starting from certain record, so I added these two lines directly after I instantiated the IQuery object:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Suspecting already used code</title>
      <link>https://emadashi.com/2008/06/suspecting-already-used-code/</link>
      <pubDate>Sun, 22 Jun 2008 14:37:12 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/suspecting-already-used-code/</guid>
      <description>&lt;p&gt;In one of the modules I am working on, my unit tests used to take tremendous amount of time (4 minutes per test 🤢. I inherited the NHibernate config file from previous NHibernate test module that was used somewhere before!&lt;/p&gt;
&lt;p&gt;At the beginning I thought that this is something common when you use NHibernate with rich applications, so I didn’t pay much attention, but then it became a real headache.&lt;/p&gt;</description>
    </item>
    <item>
      <title>What is next</title>
      <link>https://emadashi.com/2008/06/what-is-next-2/</link>
      <pubDate>Sat, 21 Jun 2008 13:14:36 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/what-is-next-2/</guid>
      <description>&lt;p&gt;Ok, now I am facing a hard decision; what to do next in my technical life?&lt;/p&gt;
&lt;p&gt;In order to reach for better decision, I drew a &lt;a href=&#34;http://en.wikipedia.org/wiki/Mind_map&#34;&gt;mind map&lt;/a&gt; using this wonderful online tool &lt;a href=&#34;http://www.mindomo.com/&#34;&gt;Mindomo&lt;/a&gt;, it’s like  the following:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2008/06/mostimportant1.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; style=&#34;border-width:0;&#34; src=&#34;https://eashi.files.wordpress.com/2008/06/mostimportant-thumb.jpg&#34; border=&#34;0&#34; alt=&#34;most important&#34; width=&#34;527&#34; height=&#34;279&#34; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Those nodes are the things I think I want to study/do most.&lt;br&gt;
I marked the most important ones with the red, yellow and then blue flags. Then marked the ones I need to do most urgently with 1 being the most urgent, 2 less urgent and so on.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
