In Chapter 5, you learned the fundamental concepts behind Hibernate mappings. In this chapter, we will look at some other issues in mapping definitions, including the mapping of collections and associations. We will see how persistent classes can be divided into value types and entity types, and how these may affect the mapping definition. As you probably know, there are different types of object associations: one-to-one, one-to-many, many-to-one, and many-to-many. The many side of the relationship is represented by an object of a
java.util.Collection or a
The mapping definitions introduced in this chapter are explained with simple examples from the educational system application. Let's begin with the ...