[This article was originally published on my personal blog here . I hereby grant myself permission to re-publish it on NHForge.org.] [Code for this article is available on GitHub here .] Nothing gets an OO zealot hot under the collar the way the term polymorphism does. You probably have three questions...
In the spirit of “ Release early. Release often. And listen to your customers ” ( cit. ), even if not so early in term of time since the preview , I decided to release a first drop of the “HQL Intellisense thing” I’m working on. The current version is just able to load an...
[ My blog ] I’m proud to announce NH2.1.0 is passing all tests (same of H3.3.1) for bulk actions using HQL. Some HQL examples: insert into Animal (description, bodyWeight, mother) select description, bodyWeight, mother from Human insert into Pickup (id, Vin, Owner) select id, Vin, Owner from Car...
[ from my blog ] Mapping: < class name = " SimpleClass " table = " TSIMPLE " > < id type = " int " > < generator class = " native " /> </ id > < property name = " Description " /> </ class > Class: public class SimpleClass...
One of the more interesting ability of NHibernate is to selectively filter records based on some global filters. This allow us to very easily create global where clauses that we can flip on and off at the touch of a switch. Let us take a look at see what I mean. We define the filter effectiveDate: <...