Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Writing and mapping classes > Fine-grained object models

3.6. Fine-grained object models

A major objective of the NHibernate project is support for fine-grained object models, which we isolated as the most important requirement for a rich domain model. It’s one reason we’ve chosen POCOs.

In crude terms, fine-grained means “more classes than tables.” For example, a user may have both a billing address and a home address. In the database, you may have a single USER table with the columns BILLING_STREET, BILLING_CITY, and BILLING_ZIPCODE along with HOME_STREET, HOME_CITY, and HOME_ZIPCODE. There are good reasons to use this somewhat denormalized relational model (performance, for one).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint