Spring MVC application using JPA

In the previous section, we learned how to create a web application using Spring and JDBC. In this section, we will take a quick look at how to use Spring with JPA (Java Persistence API). We have already learned how to use JPA in Chapter 4, Creating JEE Database Applications, and in Chapter 7, Creating JEE Applications with EJB, so we won't go into detail of how to set up the Eclipse project for JPA. However, we will discuss how to use JPA along with Spring in detail in this section.

We will create a separate project for this example. Create a Spring MVC project as described in the Creating Spring project section of this chapter. On the second page of the project wizard, where you are asked to enter a top-level package name, enter packt.jee.course_management_jpa. Recall that the last part of this package name is also used as the web application context.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.187.108