O'Reilly logo

NHibernate in Action by Tobin Harris, Pierre Henri Kuaté, Gavin King, Christian Bauer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Advanced mapping concepts

This chapter covers

  • The NHibernate type system
  • Custom mapping types
  • Collection mappings
  • One-to-one and many-to-many associations

In chapter 3, we introduced the most important ORM features provided by NHibernate, including basic class and property mappings, inheritance mappings, component mappings, and one-to-many association mappings. We now extend these topics by turning to the more exotic collection and association mappings that allow you to handle trickier use cases. It’s worth noting that these more exotic mappings should only be used with careful consideration; it’s possible to implement any domain model using simpler component mappings (one-to-many associations and one-to-one associations). Throughout ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required