In the 7th and final episode of this series, you’ll see some code examples of working with collections of related objects and how lazy loading and cascade operations work from a code perspective. We’ll also discuss object lifecycle management in NHibernate as well as guidance on how to manage lifecycle and cascade operations on collections of related objects. Finally, we’ll discuss how to perform ad-hoc queries with NHibernate including simple as well as aggregate projection queries using both the Hibernate Query Language (HQL) and the ICriteria API.