NHibernate now supports the joined table pattern
I have been asked on several occasions how one can map a single entity to more than one table. Hibernate has supported a the "joined table" pattern for some time, but this feature hasn't been part available in NHibernate. A while a go I wrote a post on different options one has to work around this limitation. I this post I mentioned a patch for NHibernate that enables this feature. Ayende made me aware that this patch is now part of the NHibernate trunk. If you need to map an entity to more than one table you should NHibernate's features for this rather than repository composition or updateable views (which are the two alternative described in my post).
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments
Leave a Comment