First, we will model the relationship between Course and Teacher. There is a one-to-many relationship between them: one teacher may teach a number of courses. Open Course.java in the editor. Open the JPA perspective in Eclipse JEE (Window | Open Perspective | JPA menu).