<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Felice Pollano Blog - Code GEneration</title>
    <link>http://www.felicepollano.com/</link>
    <description>The official Fatica Labs Blog!</description>
    <language>en-us</language>
    <copyright>Felice Pollano</copyright>
    <lastBuildDate>Mon, 21 Jun 2010 07:03:01 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>felice@felicepollano.com</managingEditor>
    <webMaster>felice@felicepollano.com</webMaster>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=bb5ee172-8c9c-49f7-8329-18831614e4d4</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,bb5ee172-8c9c-49f7-8329-18831614e4d4.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,bb5ee172-8c9c-49f7-8329-18831614e4d4.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=bb5ee172-8c9c-49f7-8329-18831614e4d4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Well, since no feedback from the users, I decided to abandon the project <a href="http://www.felicepollano.com/CategoryView,category,NHModeller.aspx" target="_blank">NHModeller</a>.
It was an attempt to create a commercial tool for NH, without any interesting returns.
If someone is interested to have the source and continue the project please <a href="mailto://felice@:____remove____felicepollano.com" target="_blank">contact
me</a>. The project is now replaced by the new <a href="http://www.felicepollano.com/CategoryView,category,NHWorkBench.aspx" target="_blank">NHibernate
Workbench</a>, that is open source.
</p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=bb5ee172-8c9c-49f7-8329-18831614e4d4" />
      </body>
      <title>Where is NHModeller ?</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,bb5ee172-8c9c-49f7-8329-18831614e4d4.aspx</guid>
      <link>http://www.felicepollano.com/2010/06/21/WhereIsNHModeller.aspx</link>
      <pubDate>Mon, 21 Jun 2010 07:03:01 GMT</pubDate>
      <description>&lt;p&gt;
Well, since no feedback from the users, I decided to abandon the project &lt;a href="http://www.felicepollano.com/CategoryView,category,NHModeller.aspx" target="_blank"&gt;NHModeller&lt;/a&gt;.
It was an attempt to create a commercial tool for NH, without any interesting returns.
If someone is interested to have the source and continue the project please &lt;a href="mailto://felice@:____remove____felicepollano.com" target="_blank"&gt;contact
me&lt;/a&gt;. The project is now replaced by the new &lt;a href="http://www.felicepollano.com/CategoryView,category,NHWorkBench.aspx" target="_blank"&gt;NHibernate
Workbench&lt;/a&gt;, that is open source.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=bb5ee172-8c9c-49f7-8329-18831614e4d4" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,bb5ee172-8c9c-49f7-8329-18831614e4d4.aspx</comments>
      <category>Code GEneration</category>
      <category>NHModeller</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=d02c0f1b-08ab-421e-9fdf-9310a77ad372</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,d02c0f1b-08ab-421e-9fdf-9310a77ad372.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,d02c0f1b-08ab-421e-9fdf-9310a77ad372.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=d02c0f1b-08ab-421e-9fdf-9310a77ad372</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbenchBugsandfeaturerequest_F68F/bug_2.jpg">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="bug" border="0" alt="bug" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbenchBugsandfeaturerequest_F68F/bug_thumb.jpg" width="139" height="165" />
          </a> The
right place for bug reporting or requiring additional features is <a href="http://sourceforge.net/tracker/?group_id=311514" target="_blank"></a></p>
        <h3>
          <a href="http://sourceforge.net/tracker/?group_id=311514" target="_blank">here</a>
        </h3>
        <p>
Since the project is new, it is normal to have something to fix. The problem is that
my testing would just be not sufficient, so your help will really be appreciated.
Thanks!
</p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=d02c0f1b-08ab-421e-9fdf-9310a77ad372" />
      </body>
      <title>NHibernate Workbench: Bugs and feature requests</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,d02c0f1b-08ab-421e-9fdf-9310a77ad372.aspx</guid>
      <link>http://www.felicepollano.com/2010/06/14/NHibernateWorkbenchBugsAndFeatureRequests.aspx</link>
      <pubDate>Mon, 14 Jun 2010 15:31:59 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbenchBugsandfeaturerequest_F68F/bug_2.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="bug" border="0" alt="bug" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbenchBugsandfeaturerequest_F68F/bug_thumb.jpg" width="139" height="165"&gt;&lt;/a&gt; The
right place for bug reporting or requiring additional features is &lt;a href="http://sourceforge.net/tracker/?group_id=311514" target="_blank"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;h3&gt;&lt;a href="http://sourceforge.net/tracker/?group_id=311514" target="_blank"&gt;here&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;
Since the project is new, it is normal to have something to fix. The problem is that
my testing would just be not sufficient, so your help will really be appreciated.
Thanks!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=d02c0f1b-08ab-421e-9fdf-9310a77ad372" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,d02c0f1b-08ab-421e-9fdf-9310a77ad372.aspx</comments>
      <category>Code GEneration</category>
      <category>NHibernate</category>
      <category>NHWorkBench</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=c27ce306-4df7-419d-9c5f-25601af5e3ae</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,c27ce306-4df7-419d-9c5f-25601af5e3ae.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,c27ce306-4df7-419d-9c5f-25601af5e3ae.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=c27ce306-4df7-419d-9c5f-25601af5e3ae</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p align="justify">
With a little delay <a href="http://nhforge.org/wikis/howtonh/how-to-use-db2hbm/comments.aspx?PageIndex=1" target="_blank">I
found people complaining about the schema file missing</a> from the <a href="http://nhforge.org/media/p/615.aspx" target="_blank">db2hbm</a> deployed
package. Now the file is included in the <a href="http://nhforge.org/media/p/615.aspx" target="_blank">download
package</a>, and <a href="http://nhforge.org/members/yanch/default.aspx" target="_blank">yanch</a> provided
a <a href="http://nhforge.org/wikis/howtonh/how-to-use-db2hbm.aspx" target="_blank">shortcut
in the doc</a> to <a href="https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.Tool.hbm2net/src/NHibernate.Tool.Db2hbm/" target="_blank">download
the file from sourceforge</a>. Thanks! 
</p>
        <p align="justify">
Well, a few word about db2hbm and Oracle ( and any other database but MSSQL now ).
I used the schema information provided by NH as long as possible, but these information
does not provides the required details in order to discover completely the foreign
keys, and foreign keys are necessary for creating associations. Not really an NH problem,
actually NH leverages ADO.NET for schema inquiry, but ADO.NET seems to miss the foreign
key part. So the only solution to have db2hbm working for all database is to provide
a <a href="https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.Tool.hbm2net/src/NHibernate.Tool.Db2hbm/IForeignKeyCrawler.cs" target="_blank">custom
foreign key crawler</a> for the DB.
</p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=c27ce306-4df7-419d-9c5f-25601af5e3ae" />
      </body>
      <title>DB2HBM missing XSD file</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,c27ce306-4df7-419d-9c5f-25601af5e3ae.aspx</guid>
      <link>http://www.felicepollano.com/2010/06/05/DB2HBMMissingXSDFile.aspx</link>
      <pubDate>Sat, 05 Jun 2010 13:32:40 GMT</pubDate>
      <description>&lt;p align="justify"&gt;
With a little delay &lt;a href="http://nhforge.org/wikis/howtonh/how-to-use-db2hbm/comments.aspx?PageIndex=1" target="_blank"&gt;I
found people complaining about the schema file missing&lt;/a&gt; from the &lt;a href="http://nhforge.org/media/p/615.aspx" target="_blank"&gt;db2hbm&lt;/a&gt; deployed
package. Now the file is included in the &lt;a href="http://nhforge.org/media/p/615.aspx" target="_blank"&gt;download
package&lt;/a&gt;, and &lt;a href="http://nhforge.org/members/yanch/default.aspx" target="_blank"&gt;yanch&lt;/a&gt; provided
a &lt;a href="http://nhforge.org/wikis/howtonh/how-to-use-db2hbm.aspx" target="_blank"&gt;shortcut
in the doc&lt;/a&gt; to &lt;a href="https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.Tool.hbm2net/src/NHibernate.Tool.Db2hbm/" target="_blank"&gt;download
the file from sourceforge&lt;/a&gt;. Thanks! 
&lt;/p&gt;
&lt;p align="justify"&gt;
Well, a few word about db2hbm and Oracle ( and any other database but MSSQL now ).
I used the schema information provided by NH as long as possible, but these information
does not provides the required details in order to discover completely the foreign
keys, and foreign keys are necessary for creating associations. Not really an NH problem,
actually NH leverages ADO.NET for schema inquiry, but ADO.NET seems to miss the foreign
key part. So the only solution to have db2hbm working for all database is to provide
a &lt;a href="https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.Tool.hbm2net/src/NHibernate.Tool.Db2hbm/IForeignKeyCrawler.cs" target="_blank"&gt;custom
foreign key crawler&lt;/a&gt; for the DB.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=c27ce306-4df7-419d-9c5f-25601af5e3ae" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,c27ce306-4df7-419d-9c5f-25601af5e3ae.aspx</comments>
      <category>Code GEneration</category>
      <category>NHibernate</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=32f5a414-36eb-4ab5-a652-cc3add9c31f8</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,32f5a414-36eb-4ab5-a652-cc3add9c31f8.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,32f5a414-36eb-4ab5-a652-cc3add9c31f8.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=32f5a414-36eb-4ab5-a652-cc3add9c31f8</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
First of all I renamed the project on <a href="http://www.sourceforge.net" target="_blank">Sourceforge</a>.
Now it is more sensible <a href="http://sourceforge.net/projects/faticalabshqled/" target="_blank">NHibernate
Workbench</a>.
</p>
        <p>
          <a href="http://sourceforge.net/projects/faticalabshqled/" target="_blank">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="nhwsourceforge" border="0" alt="nhwsourceforge" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbenchnextsteps_B047/nhwsourceforge_3.png" width="630" height="262" />
          </a>
        </p>
        <p align="justify">
In the SVN repository there is now a tag to the version 1.0.0.11, and the trunk claim
to be the version 1.0.0.2.00.
</p>
        <p align="justify">
Now I’m planning to allow to use NH Workbench attached to a running application: this
should help us to play with application compiled without mappings ( ie <a href="http://code.google.com/p/codeconform/" target="_blank">ConfOrm</a> and <a href="http://fluentnhibernate.org/" target="_blank">Fluent
NH</a> ). Then I would like to improve the “Probe” class letting it be more versatile
and modifiable by the user, probably using some sort of script engine: I’m thinking
to use <a href="http://ironpython.net/" target="_blank">IronPython</a>, but any suggestion
are welcome. Just to clarify: the probe class serves to insolate NHWorkbench from
the NH version used by the project under test. We basically runs the test in a separate
app domain, but we need the “probe” type to be unbounded to any NH specific version.
This is done by using reflection, but it would be easier to be done in a script. The
same engine will be useful to write some NHibernate testing: instead of use just HQL,
we will be able to submit some portion of code on the fly and see what happen. The
other step is to allow the user writing a mapping on the fly and imemdiately see what
happen ( by using <a href="http://nhforge.org/media/p/546.aspx" target="_blank">hbm2net</a> behind
the scenes ). Ok, it’s a lot of work, I’ve no idea the order this will be done, let
me know if you have any idea and preference. 
</p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=32f5a414-36eb-4ab5-a652-cc3add9c31f8" />
      </body>
      <title>NHibernate Workbench next steps</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,32f5a414-36eb-4ab5-a652-cc3add9c31f8.aspx</guid>
      <link>http://www.felicepollano.com/2010/05/31/NHibernateWorkbenchNextSteps.aspx</link>
      <pubDate>Mon, 31 May 2010 10:35:43 GMT</pubDate>
      <description>&lt;p&gt;
First of all I renamed the project on &lt;a href="http://www.sourceforge.net" target="_blank"&gt;Sourceforge&lt;/a&gt;.
Now it is more sensible &lt;a href="http://sourceforge.net/projects/faticalabshqled/" target="_blank"&gt;NHibernate
Workbench&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://sourceforge.net/projects/faticalabshqled/" target="_blank"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="nhwsourceforge" border="0" alt="nhwsourceforge" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbenchnextsteps_B047/nhwsourceforge_3.png" width="630" height="262"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p align="justify"&gt;
In the SVN repository there is now a tag to the version 1.0.0.11, and the trunk claim
to be the version 1.0.0.2.00.
&lt;/p&gt;
&lt;p align="justify"&gt;
Now I’m planning to allow to use NH Workbench attached to a running application: this
should help us to play with application compiled without mappings ( ie &lt;a href="http://code.google.com/p/codeconform/" target="_blank"&gt;ConfOrm&lt;/a&gt; and &lt;a href="http://fluentnhibernate.org/" target="_blank"&gt;Fluent
NH&lt;/a&gt; ). Then I would like to improve the “Probe” class letting it be more versatile
and modifiable by the user, probably using some sort of script engine: I’m thinking
to use &lt;a href="http://ironpython.net/" target="_blank"&gt;IronPython&lt;/a&gt;, but any suggestion
are welcome. Just to clarify: the probe class serves to insolate NHWorkbench from
the NH version used by the project under test. We basically runs the test in a separate
app domain, but we need the “probe” type to be unbounded to any NH specific version.
This is done by using reflection, but it would be easier to be done in a script. The
same engine will be useful to write some NHibernate testing: instead of use just HQL,
we will be able to submit some portion of code on the fly and see what happen. The
other step is to allow the user writing a mapping on the fly and imemdiately see what
happen ( by using &lt;a href="http://nhforge.org/media/p/546.aspx" target="_blank"&gt;hbm2net&lt;/a&gt; behind
the scenes ). Ok, it’s a lot of work, I’ve no idea the order this will be done, let
me know if you have any idea and preference. 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=32f5a414-36eb-4ab5-a652-cc3add9c31f8" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,32f5a414-36eb-4ab5-a652-cc3add9c31f8.aspx</comments>
      <category>Code GEneration</category>
      <category>HQL Intellisense</category>
      <category>NHibernate</category>
      <category>NHWorkBench</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=16e3b3d6-d315-4e96-b274-e5d7d4eee261</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,16e3b3d6-d315-4e96-b274-e5d7d4eee261.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,16e3b3d6-d315-4e96-b274-e5d7d4eee261.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=16e3b3d6-d315-4e96-b274-e5d7d4eee261</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p align="justify">
Sometimes I receive some notification on where source code for both <a href="http://nhforge.org/media/p/615.aspx" target="_blank">db2hbm</a> and <a href="hhttp://nhforge.org/media/p/546.aspx" target="_blank">hbm2net</a> are
located. The best way is to check-out the source of the <a href="https://sourceforge.net/projects/nhcontrib/" target="_blank">NHContrib</a> project: <code><strong><em><a href="https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib">https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib</a></em></strong></code></p>
        <p align="justify">
hbm2net is still in alfa, but I frequently use it in my projects as a class generator.
It really lack some documentation: it is really a powerful artifact generator, and
by writing proper T4 templates any artifact can be generated. Db2hbm is working ok
for MSSQL, but there is not yet an implementation for oracle and other DB, even if
Ricardo Peres provided me some interesting code to work on. 
</p>
        <p align="justify">
Hope this help who’s looking for these tools source code.
</p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=16e3b3d6-d315-4e96-b274-e5d7d4eee261" />
      </body>
      <title>Hbm2net and Db2hbm source code location</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,16e3b3d6-d315-4e96-b274-e5d7d4eee261.aspx</guid>
      <link>http://www.felicepollano.com/2010/05/24/Hbm2netAndDb2hbmSourceCodeLocation.aspx</link>
      <pubDate>Mon, 24 May 2010 19:08:30 GMT</pubDate>
      <description>&lt;p align="justify"&gt;
Sometimes I receive some notification on where source code for both &lt;a href="http://nhforge.org/media/p/615.aspx" target="_blank"&gt;db2hbm&lt;/a&gt; and &lt;a href="hhttp://nhforge.org/media/p/546.aspx" target="_blank"&gt;hbm2net&lt;/a&gt; are
located. The best way is to check-out the source of the &lt;a href="https://sourceforge.net/projects/nhcontrib/" target="_blank"&gt;NHContrib&lt;/a&gt; project: &lt;code&gt;&lt;strong&gt;&lt;em&gt;&lt;a href="https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib"&gt;https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/code&gt;
&lt;/p&gt;
&lt;p align="justify"&gt;
hbm2net is still in alfa, but I frequently use it in my projects as a class generator.
It really lack some documentation: it is really a powerful artifact generator, and
by writing proper T4 templates any artifact can be generated. Db2hbm is working ok
for MSSQL, but there is not yet an implementation for oracle and other DB, even if
Ricardo Peres provided me some interesting code to work on. 
&lt;/p&gt;
&lt;p align="justify"&gt;
Hope this help who’s looking for these tools source code.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=16e3b3d6-d315-4e96-b274-e5d7d4eee261" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,16e3b3d6-d315-4e96-b274-e5d7d4eee261.aspx</comments>
      <category>Code GEneration</category>
      <category>NHibernate</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=5afc1727-7cc5-4248-9695-69047cfcc138</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,5afc1727-7cc5-4248-9695-69047cfcc138.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,5afc1727-7cc5-4248-9695-69047cfcc138.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=5afc1727-7cc5-4248-9695-69047cfcc138</wfw:commentRss>
      <slash:comments>10</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p align="justify">
In the spirit of “<em>Release early. Release often. And listen to your customers</em>”
( cit. ), even if not so early in term of time since the <a href="http://www.felicepollano.com/2010/04/22/SomeProgressWithHqlIntellisense.aspx">preview</a>,
I decided to <a href="http://sourceforge.net/projects/faticalabshqled/files/">release
a first drop</a> of the “HQL Intellisense thing” I’m working on. The current version
is just able to load an existing mapping assembly, a configuration, help us to write
an hql query, submit it to NH and see some results. Here an overall screenshot: 
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s1_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s1" border="0" alt="s1" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s1_thumb.png" width="580" height="407" />
          </a>
        </p>
        <p align="justify">
To use it you need to <a href="http://sourceforge.net/projects/faticalabshqled/files/" target="_blank">download
the bits</a>, and then “create a project” a project is, in the NH Workbench world,
a bounch of file representing what we are working on ( and actually is a project in
the MSBUILD world. To use the tool now we need at least a working NH configuration
file ( your app.config or web config ) and one or more mapping assembly(ies). You
add the files to the project by right clicking the project tree:<a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s2_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s2" border="0" alt="s2" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s2_thumb.png" width="202" height="244" /></a></p>
        <p align="justify">
After you added the file you can save the project, so it can be reopened when needed.
Please note that the mapping assembly has to be opened from a location containing
all the required dependencies ( usually the application folder, or the bin folder
).
</p>
        <p align="justify">
After the project is created, you need to compile it before starting to write the
queries:
</p>
        <p align="justify">
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s3_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s3" border="0" alt="s3" align="right" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s3_thumb.png" width="244" height="79" />
          </a>
        </p>
        <p>
You can compile the project by clicking the button on the toolbar as shown in the
picture Fig3
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
Compiling the project should produce a report in the log area:
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s4_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s4" border="0" alt="s4" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s4_thumb.png" width="572" height="142" />
          </a>
        </p>
        <p>
If you find the report too verbose, you can uncheck some of the button in the log
toolbar. After a successful compilation, we can open a query (hql) document:
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s5_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s5" border="0" alt="s5" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s5_thumb.png" width="244" height="256" />
          </a>
        </p>
        <p>
        </p>
        <p>
This will open a pane in the document area in which we can write HQL queries with
some intellisense/auto-completion. Plaese note that, for have the entity completion,
after the “from” keyword we need to <strong>press ctrl+space</strong> to see the completion
combo.
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
 
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s6_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s6" border="0" alt="s6" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s6_thumb.png" width="244" height="64" />
          </a>
        </p>
        <p>
Here an example HQL document. After a valid query is done we can submit it to NH and
see the result:
</p>
        <p>
 
</p>
        <p>
The “<strong>play</strong>” button is enabled only if a valid query ( no errors )
is written in the document. The<strong> first</strong> and <strong>coun</strong>t
places are useful to<strong> limit</strong> the query results.
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s7_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s7" border="0" alt="s7" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s7_thumb.png" width="213" height="80" />
          </a> By
pressing the play button, you will be able to se the query results ( if any ):
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s8_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s8" border="0" alt="s8" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s8_thumb.png" width="482" height="147" />
          </a>
        </p>
        <p>
Next steps:
</p>
        <ul>
          <li>
Solve the bugs till now 
</li>
          <li>
Add supports for <a href="http://nhforge.org/media/p/546.aspx" target="_blank">hbm2net</a>,
so user can write mapping and immediately see it at works. 
</li>
        </ul>
        <p>
Enjoy !
</p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=5afc1727-7cc5-4248-9695-69047cfcc138" />
      </body>
      <title>NHibernate Workbench</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,5afc1727-7cc5-4248-9695-69047cfcc138.aspx</guid>
      <link>http://www.felicepollano.com/2010/05/19/NHibernateWorkbench.aspx</link>
      <pubDate>Wed, 19 May 2010 15:30:52 GMT</pubDate>
      <description>&lt;p align="justify"&gt;
In the spirit of “&lt;em&gt;Release early. Release often. And listen to your customers&lt;/em&gt;”
( cit. ), even if not so early in term of time since the &lt;a href="http://www.felicepollano.com/2010/04/22/SomeProgressWithHqlIntellisense.aspx"&gt;preview&lt;/a&gt;,
I decided to &lt;a href="http://sourceforge.net/projects/faticalabshqled/files/"&gt;release
a first drop&lt;/a&gt; of the “HQL Intellisense thing” I’m working on. The current version
is just able to load an existing mapping assembly, a configuration, help us to write
an hql query, submit it to NH and see some results. Here an overall screenshot: 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s1_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s1" border="0" alt="s1" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s1_thumb.png" width="580" height="407"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p align="justify"&gt;
To use it you need to &lt;a href="http://sourceforge.net/projects/faticalabshqled/files/" target="_blank"&gt;download
the bits&lt;/a&gt;, and then “create a project” a project is, in the NH Workbench world,
a bounch of file representing what we are working on ( and actually is a project in
the MSBUILD world. To use the tool now we need at least a working NH configuration
file ( your app.config or web config ) and one or more mapping assembly(ies). You
add the files to the project by right clicking the project tree:&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s2_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s2" border="0" alt="s2" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s2_thumb.png" width="202" height="244"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p align="justify"&gt;
After you added the file you can save the project, so it can be reopened when needed.
Please note that the mapping assembly has to be opened from a location containing
all the required dependencies ( usually the application folder, or the bin folder
).
&lt;/p&gt;
&lt;p align="justify"&gt;
After the project is created, you need to compile it before starting to write the
queries:
&lt;/p&gt;
&lt;p align="justify"&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s3_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s3" border="0" alt="s3" align="right" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s3_thumb.png" width="244" height="79"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
You can compile the project by clicking the button on the toolbar as shown in the
picture Fig3
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Compiling the project should produce a report in the log area:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s4_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s4" border="0" alt="s4" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s4_thumb.png" width="572" height="142"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
If you find the report too verbose, you can uncheck some of the button in the log
toolbar. After a successful compilation, we can open a query (hql) document:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s5_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s5" border="0" alt="s5" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s5_thumb.png" width="244" height="256"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
This will open a pane in the document area in which we can write HQL queries with
some intellisense/auto-completion. Plaese note that, for have the entity completion,
after the “from” keyword we need to &lt;strong&gt;press ctrl+space&lt;/strong&gt; to see the completion
combo.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s6_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="s6" border="0" alt="s6" align="left" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s6_thumb.png" width="244" height="64"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Here an example HQL document. After a valid query is done we can submit it to NH and
see the result:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
The “&lt;strong&gt;play&lt;/strong&gt;” button is enabled only if a valid query ( no errors )
is written in the document. The&lt;strong&gt; first&lt;/strong&gt; and &lt;strong&gt;coun&lt;/strong&gt;t
places are useful to&lt;strong&gt; limit&lt;/strong&gt; the query results.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s7_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s7" border="0" alt="s7" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s7_thumb.png" width="213" height="80"&gt;&lt;/a&gt; By
pressing the play button, you will be able to se the query results ( if any ):
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s8_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s8" border="0" alt="s8" src="http://www.felicepollano.com/public/WindowsLiveWriter/NHibernateWorkbench_F09B/s8_thumb.png" width="482" height="147"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Next steps:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Solve the bugs till now 
&lt;li&gt;
Add supports for &lt;a href="http://nhforge.org/media/p/546.aspx" target="_blank"&gt;hbm2net&lt;/a&gt;,
so user can write mapping and immediately see it at works. 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Enjoy !
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=5afc1727-7cc5-4248-9695-69047cfcc138" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,5afc1727-7cc5-4248-9695-69047cfcc138.aspx</comments>
      <category>Code GEneration</category>
      <category>NHibernate</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=87600944-58a9-477e-9985-9885d8337769</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,87600944-58a9-477e-9985-9885d8337769.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,87600944-58a9-477e-9985-9885d8337769.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=87600944-58a9-477e-9985-9885d8337769</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p align="justify">
There was a bug in the many-to-many strategy, causing a null reference exception.
The bug was solved, and a current snapshot of db2hbm can be <a href="http://nhforge.org/media/p/615.aspx" target="_blank">found
here as usual</a>.
</p>
        <p align="justify">
          <a href="http://nhforge.org/media/p/615.aspx">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="db2hbm" border="0" alt="db2hbm" src="http://www.felicepollano.com/public/WindowsLiveWriter/Db2hbmbugsolved_9DE8/db2hbm_3.png" width="414" height="98" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=87600944-58a9-477e-9985-9885d8337769" />
      </body>
      <title>Db2hbm: bug solved</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,87600944-58a9-477e-9985-9885d8337769.aspx</guid>
      <link>http://www.felicepollano.com/2010/05/19/Db2hbmBugSolved.aspx</link>
      <pubDate>Wed, 19 May 2010 09:13:46 GMT</pubDate>
      <description>&lt;p align="justify"&gt;
There was a bug in the many-to-many strategy, causing a null reference exception.
The bug was solved, and a current snapshot of db2hbm can be &lt;a href="http://nhforge.org/media/p/615.aspx" target="_blank"&gt;found
here as usual&lt;/a&gt;.
&lt;/p&gt;
&lt;p align="justify"&gt;
&lt;a href="http://nhforge.org/media/p/615.aspx"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="db2hbm" border="0" alt="db2hbm" src="http://www.felicepollano.com/public/WindowsLiveWriter/Db2hbmbugsolved_9DE8/db2hbm_3.png" width="414" height="98"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=87600944-58a9-477e-9985-9885d8337769" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,87600944-58a9-477e-9985-9885d8337769.aspx</comments>
      <category>Code GEneration</category>
      <category>NHibernate</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=6ec28b7e-bf89-485d-ac78-e08bbe2f6185</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,6ec28b7e-bf89-485d-ac78-e08bbe2f6185.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,6ec28b7e-bf89-485d-ac78-e08bbe2f6185.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=6ec28b7e-bf89-485d-ac78-e08bbe2f6185</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
There is some interesting progress with my project <a href="http://sourceforge.net/projects/faticalabshqled/" target="_blank">Fatica.Labs.HqlEditor</a>.
I just want to share some screenshot:
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s5_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s5" border="0" alt="s5" src="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s5_thumb.png" width="490" height="356" />
          </a>
        </p>
        <p>
Well, it is growing to be a real tool, and in my idea would became a sort of test
bed in which the user can add or modify mapping, try the queries, change the config,
export a database script, reverse engineering and so on. Actually all the low level
tool to achieve that are available.
</p>
        <p>
Ok, let’s explain the layout:
</p>
        <ol>
          <li>
The document area, here we have mapping/config/hql <strong>all</strong> with <strong>intellisense</strong>.
In the screenshot the code completion for an Hql is shown. In future maybe I will
be able to insert a T4 editor for the hbm2net templates. 
</li>
          <li>
The project area: here we have a bounch of file that are representing our testing
project: mapping, configurations, assemblies and so on. I have use the MSbuild object
as a backend for the project, because in the near future I would like to use it to
really build some artifacts using <a href="http://nhforge.org/media/p/546.aspx" target="_blank">hbm2net</a> and <a href="http://nhforge.org/media/p/615.aspx" target="_blank">db2hbm</a>. 
</li>
          <li>
Here is the SQL preview of the query in editing. Now the view is showing an error
because the query is incomplete. 
</li>
          <li>
The funny log, a graphical appender for <a href="http://logging.apache.org/log4net/index.html" target="_blank">log4net</a> :-)</li>
        </ol>
        <p>
Some more words about the project itself: the testing environment is hosted in a separate
appdomain, this will allow us to:
</p>
        <ul>
          <li>
Modify the mapping runtime generating new version of the assembly 
</li>
          <li>
Testing production assemblies built with legacy nh versions ( well, not so legacy,
starting from 2.xxx )</li>
        </ul>
        <p>
Let’s have another screenshot, showing a real SQL preview:
</p>
        <p>
          <a href="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s7_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s7" border="0" alt="s7" src="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s7_thumb.png" width="509" height="322" />
          </a>
        </p>
        <p>
Next step is to produce the query results in some sort of usable representation (
I need to push the data across two app domain ) so I would probably use some JSON
serialization and then display the JSON raw data with some readable formatting.
</p>
        <p>
You can see a <a href="http://screencast.com/t/OGZkMmVlMjA" target="_blank">little
demo video here</a>.
</p>
        <p>
The project is not yet released, please treat it as a CTP ;) anyway, the svn repository
is here:
</p>
        <p>
          <code>
            <strong>https://faticalabshqled.svn.sourceforge.net/svnroot/faticalabshqled</strong>
          </code>
        </p>
        <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=6ec28b7e-bf89-485d-ac78-e08bbe2f6185" />
      </body>
      <title>Some Progress with HqlIntellisense…</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,6ec28b7e-bf89-485d-ac78-e08bbe2f6185.aspx</guid>
      <link>http://www.felicepollano.com/2010/04/22/SomeProgressWithHqlIntellisense.aspx</link>
      <pubDate>Thu, 22 Apr 2010 16:41:58 GMT</pubDate>
      <description>&lt;p&gt;
There is some interesting progress with my project &lt;a href="http://sourceforge.net/projects/faticalabshqled/" target="_blank"&gt;Fatica.Labs.HqlEditor&lt;/a&gt;.
I just want to share some screenshot:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s5_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s5" border="0" alt="s5" src="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s5_thumb.png" width="490" height="356"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Well, it is growing to be a real tool, and in my idea would became a sort of test
bed in which the user can add or modify mapping, try the queries, change the config,
export a database script, reverse engineering and so on. Actually all the low level
tool to achieve that are available.
&lt;/p&gt;
&lt;p&gt;
Ok, let’s explain the layout:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
The document area, here we have mapping/config/hql &lt;strong&gt;all&lt;/strong&gt; with &lt;strong&gt;intellisense&lt;/strong&gt;.
In the screenshot the code completion for an Hql is shown. In future maybe I will
be able to insert a T4 editor for the hbm2net templates. 
&lt;li&gt;
The project area: here we have a bounch of file that are representing our testing
project: mapping, configurations, assemblies and so on. I have use the MSbuild object
as a backend for the project, because in the near future I would like to use it to
really build some artifacts using &lt;a href="http://nhforge.org/media/p/546.aspx" target="_blank"&gt;hbm2net&lt;/a&gt; and &lt;a href="http://nhforge.org/media/p/615.aspx" target="_blank"&gt;db2hbm&lt;/a&gt;. 
&lt;li&gt;
Here is the SQL preview of the query in editing. Now the view is showing an error
because the query is incomplete. 
&lt;li&gt;
The funny log, a graphical appender for &lt;a href="http://logging.apache.org/log4net/index.html" target="_blank"&gt;log4net&lt;/a&gt; :-)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Some more words about the project itself: the testing environment is hosted in a separate
appdomain, this will allow us to:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Modify the mapping runtime generating new version of the assembly 
&lt;li&gt;
Testing production assemblies built with legacy nh versions ( well, not so legacy,
starting from 2.xxx )&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Let’s have another screenshot, showing a real SQL preview:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s7_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="s7" border="0" alt="s7" src="http://www.felicepollano.com/public/WindowsLiveWriter/SomeProgresswithHqlIntellisense_10509/s7_thumb.png" width="509" height="322"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Next step is to produce the query results in some sort of usable representation (
I need to push the data across two app domain ) so I would probably use some JSON
serialization and then display the JSON raw data with some readable formatting.
&lt;/p&gt;
&lt;p&gt;
You can see a &lt;a href="http://screencast.com/t/OGZkMmVlMjA" target="_blank"&gt;little
demo video here&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
The project is not yet released, please treat it as a CTP ;) anyway, the svn repository
is here:
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;&lt;strong&gt;https://faticalabshqled.svn.sourceforge.net/svnroot/faticalabshqled&lt;/strong&gt;&lt;/code&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=6ec28b7e-bf89-485d-ac78-e08bbe2f6185" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,6ec28b7e-bf89-485d-ac78-e08bbe2f6185.aspx</comments>
      <category>Code GEneration</category>
      <category>HQL Intellisense</category>
      <category>NHibernate</category>
      <category>NHWorkBench</category>
    </item>
    <item>
      <trackback:ping>http://www.felicepollano.com/Trackback.aspx?guid=5865d152-b382-4e22-8859-7bda0b3597e2</trackback:ping>
      <pingback:server>http://www.felicepollano.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.felicepollano.com/PermaLink,guid,5865d152-b382-4e22-8859-7bda0b3597e2.aspx</pingback:target>
      <dc:creator>Felice Pollano</dc:creator>
      <wfw:comment>http://www.felicepollano.com/CommentView,guid,5865d152-b382-4e22-8859-7bda0b3597e2.aspx</wfw:comment>
      <wfw:commentRss>http://www.felicepollano.com/SyndicationService.asmx/GetEntryCommentsRss?guid=5865d152-b382-4e22-8859-7bda0b3597e2</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <a href="http://fabiomaulo.blogspot.com/2009/06/inflectornet-english-and-spanish.html">Here</a> you
can find an Inflector ( a strategy to singularize, pluralize case convert and much
more ) very useful in code generation. Supported languages are now English and spanish. <img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=5865d152-b382-4e22-8859-7bda0b3597e2" /></body>
      <title>UnHaddin Inflector</title>
      <guid isPermaLink="false">http://www.felicepollano.com/PermaLink,guid,5865d152-b382-4e22-8859-7bda0b3597e2.aspx</guid>
      <link>http://www.felicepollano.com/2009/06/16/UnHaddinInflector.aspx</link>
      <pubDate>Tue, 16 Jun 2009 08:37:00 GMT</pubDate>
      <description>&lt;a href="http://fabiomaulo.blogspot.com/2009/06/inflectornet-english-and-spanish.html"&gt;Here&lt;/a&gt; you
can find an Inflector ( a strategy to singularize, pluralize case convert and much
more ) very useful in code generation. Supported languages are now English and spanish. &lt;img width="0" height="0" src="http://www.felicepollano.com/aggbug.ashx?id=5865d152-b382-4e22-8859-7bda0b3597e2" /&gt;</description>
      <comments>http://www.felicepollano.com/CommentView,guid,5865d152-b382-4e22-8859-7bda0b3597e2.aspx</comments>
      <category>Code GEneration</category>
    </item>
  </channel>
</rss>