Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Spring Boot 2.0 Projects

You're reading from   Spring Boot 2.0 Projects Build production-grade reactive applications and microservices with Spring Boot

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781789136159
Length 336 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Sadakath Sadakath
Author Profile Icon Sadakath
Sadakath
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
1. Introduction FREE CHAPTER 2. Building a Basic Web Application 3. Building a Simple Blog Management System 4. Introduction to Kotlin 5. Building a Reactive Movie Rating API Using Kotlin 6. Building an API with Reactive Microservices 7. Building a Twitter Clone with Spring Boot 8. Introducing Spring Boot 2.0 Asynchronous 9. Building an Asynchronous Email Formatter 1. Assessments 2. Other Books You May Enjoy Index

Using Spring Data JPA for persistence


This section will introduce JPA and how to use Spring Data JPA repositories to provide Create, Retrieve, Update, and Delete (CRUD) operations on JPA easily.

 

Class diagram for the domain model

Since the domain model is the most important component of an application, this section will go over designing it before we go any further. The following is the simple class diagram for this web service:

There is only one main domain model, as shown in the preceding diagram. This is explained as follows:

User: This is the main domain model, which will store user details such as username, password, email, and id.

Implementation of the domain model using JPA annotations

This section will explain the details of how to configure and use Spring Data JPA with an embedded database with the domain model designed in the previous section.

Setting up dependencies and the configuration class

Initially, before implementing the domain model, the dependencies and configuration classes...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images