Chapter 2. Models and Mappings
In this chapter, we will cover the following topics:
Mapping a class with XML
Creating class hierarchy mappings
Creating class components
Mapping a one-to-many relationship
Mapping a many-to-many relationship
Mapping collections of elements and components
Setting up a base entity class
Handling versioning and concurrency
Mapping by code
Mapping by convention
Creating mappings fluently
Bidirectional one-to-many class relationships
Mappings enumerations
Immutable entities
Mapping relations to non-primary keys
Using lazy properties
Mapping joins
Using calculated properties
Using serializable values
Dynamic components
Mapping <subselect>