Skip to content

This tutorial project explains spring-jpa concepts and using Hibernate APIs for persistence layer with dbcp2 for connection pool management. Spring MVC used for call CRUD operations

License

seefa/spring-mvc-hibernate-dbcp2-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-mvc-hibernate-dbcp2-tutorial

Spring MVC features explained in spring-mvc-jdbc-tutorial codes in my repository

This tutorial code used to explain Spring with Hibernate for persistence layer and Web MVC to call CRUD operations and using dbcp2 API for connection pool management by following tasks:

  • add spring-context, mysql-connector-java, spring-orm spring-webmvc and dependencies
  • add javax.servlet.jsp-api, javax.servlet-api and jstl dependencies for implementing Java server-side UI(.jsp files).
  • add spring-data-jpa, hibernate-core, hibernate-entitymanager and hibernate-validator dependencies for implementing Persistence ORM layer.
  • add commons-dbcp2 dependency for supporting Database Connection Pool feature.
  • using Entity bean to add new DAO object and using @Entity and @Table annotations plus @GeneratedValue for generating table key value automatically.
  • support using GET/POST HTTP requests to access CRUD services.
  • using tag libs in JSP view pages to iterate/post and formatting Java objects to HTML contents and pass HTML input forms to Java Object.
  • using @InitBinder to convert String date input to java.util.Date format.

TIP: Database DDL and DML SQL queries is added to db_files folder

About

This tutorial project explains spring-jpa concepts and using Hibernate APIs for persistence layer with dbcp2 for connection pool management. Spring MVC used for call CRUD operations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages