Category Archives: NHibernate

Win Free Copies of NHibernate 3 Beginner’s Guide

Readers would be pleased to know that I have teamed up with Packt Publishing and we are organizing a Giveaway especially for you and three lucky winners stand a chance to win a copy of Keep reading to find out … Continue reading 

| Leave a comment

How to map a domain model with NHibernate?

Today a friend of mine ask me the following (I am para-phrasing): “I have a question regarding NHibernate and mapping. In an application we want to access the database through NHibernate from inside a WCF service, thus lazy loading is … Continue reading 

| 3 Comments

NHibernate 3 Beginners Guide published

I am very pleased to announce that my book NHibernate 3 Beginners Guide has finally been published. It is a wonderful feeling to finally have a book in my hands that cost me a couple of months of intense work. … Continue reading 

| Leave a comment

NHibernate 3 Beginners Guide

I am heading towards another mile stone in my life. Later this year my first book will be published. I have always wanted to write a book but never had a topic that is at the same time interesting for … Continue reading 

| 13 Comments

Ditching domain models for reads

Last week was a tipping point for me.  We had an issue where a production service failed because NHibernate was trying to issue thousands of UPDATE calls for domain objects that we didn’t update.  It turned out that we had … Continue reading 

| 9 Comments

New book on NHibernate

Yesterday a new excellent book about NHibernate has been published by www.packtpub.com. (Disclosure: I have been a reviewer thus consider that when reading this post) The book is called “NHibernate 3.0 Cookbook” and can be ordered here. There is even … Continue reading 

Also posted in Craftsmanship | 10 Comments

Analyzing historical data and playing with interactive extensions

Introduction In my last post I showed you how we make history an explicit domain concept. This time I want to show you how we use the history of the cages to generate bills. In our Zoo each cage has … Continue reading 

Also posted in IoC, Java, Spring | 2 Comments

Making history explicit

Introduction In one product of our solution we needed to record the full history of some entities. What does this mean? It means we create a history entry whenever the state of the corresponding entity changes. When doing this there … Continue reading 

Also posted in Anti-Patterns | Leave a comment

Ad-hoc mapping with NHibernate

In my recent adventures with massive bulk processing, there are some times when I want to pull bulk loaded tables from SQL, but don’t want to go through all the trouble of building a mapping in NHibernate.  For example, one … Continue reading 

| 4 Comments

Using Fluent NHibernate With Legacy Databases

I am currently working on a project that has a requirement that it be able to access  data from a legacy SQL Server database. One feature of this system is the ability to add and store checking accounts. These checking … Continue reading 

Also posted in IronPython, Python | 4 Comments