This is an example of how you would do a one to many mapping using XML. We will use Author and Book as our example and assume an author may have written many books, but each book will only have one author.
Author class:
public class Author {
private int id;
private String firstName;
...