Blog Archives

Spring MVC Web Application with JPA, Hibernate & MySQL

Controller –> Service Layer –> DAO Layer –> JPA/Hibernate –> MySQL Database Step 1: The pom.xml with JSTL, Spring MVC, JPA, and Hibernate libraries are included as well.

Define the model class Account.java Step 2: Define the Account.java with 3 fields & getters/setters in the package “com.mytutorial.model”. This has

Read more ›

Posted in JPA-Hibernate-Spring Tutorial

Spring MVC RESTful with JPA, Hibernate & MySQL database beginner in 13 steps

This tutorial combines both 1) Spring 4 MVC RESTful Web Service Beginner Tutorial step by step, which focuses on the RSTful web service and 2) JPA with Hibernate & MySQL database tutorial step by step, which focuses on JPA and Hibernate. Controller –> Service Layer –> DAO Layer –> JPA/Hibernate

Read more ›

Posted in JPA-Hibernate-Spring Tutorial

Part #3: JPA Hibernate Spring Maven Eclipse Tutorial – testing data access with HSQLDB

This tutorial focuses on testing data access logic with spring-test and hsqldb. This extends Part #2: JPA Hibernate Spring Maven Eclipse Tutorial – JPA configs and repository Testing the mapping of entities managed by hibernate and wiring up of JPA, Hibernate, etc via Spring. Schema and mock data similar to…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in Data Access Unit Testing, JPA-Hibernate-Spring Tutorial, member-paid

Part #2: JPA Hibernate Spring Maven Eclipse Tutorial – JPA configs and repository

This extends Part #1: JPA Hibernate Spring Maven Eclipse Tutorial. Spring wires dependencies with “MyDomainConfiguration” JavaConfig file. You have a Service Layer –> DAO (or Repository) Layer –> Entity (i.e. maps relational data to an object). The components are scanned by type in the basePackages = “com.jpa.tutorial.domain. Step 4: The…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in JPA-Hibernate-Spring Tutorial, member-paid

♥ Part #1: JPA Hibernate Spring Maven Eclipse Tutorial – setting up pom.xml

Any non trivial application needs to talk to databases. JPA is for ORM (Object to Relational Mapping) frameworks like Hibernate as JDBC is database connectivity. The finished project artifacts are shown below, and it consists of Java classes, properties files, and Spring “JavaConfig” files with @Configuration annotation. Let’s start with

Read more ›

Posted in JPA-Hibernate-Spring Tutorial

800+ Interview Q&As – ♥ Free | ♦ FAQs

open all | close all

Pressed for time? 200+ Quick Prep

open all | close all

16 Technical Key Areas to be a top-notch

open all | close all

100+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your

open all | close all