Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Full Stack Development with Spring Boot 2 and React

You're reading from   Hands-On Full Stack Development with Spring Boot 2 and React Build modern and scalable full stack applications using Spring Framework 5 and React with Hooks

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781838822361
Length 316 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Juha Hinkula Juha Hinkula
Author Profile Icon Juha Hinkula
Juha Hinkula
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Section 1: Backend Programming with Spring Boot
2. Setting Up the Environment and Tools - Backend FREE CHAPTER 3. Dependency Injection 4. Using JPA to Create and Access a Database 5. Creating a RESTful Web Service with Spring Boot 6. Securing and Testing Your Backend 7. Section 2: Frontend Programming with React
8. Setting Up the Environment and Tools - Frontend 9. Getting Started with React 10. Consuming the REST API with React 11. Useful Third-Party Components for React 12. Section 3: Full Stack Development
13. Setting Up the Frontend for Our Spring Boot RESTful Web Service 14. Adding CRUD Functionalities 15. Styling the Frontend with React Material-UI 16. Testing Your Frontend 17. Securing Your Application 18. Deploying Your Application 19. Best Practices 20. Assessments 21. Other Books You May Enjoy

Chapter 3

  1. Object-relational mapping (ORM) is a technique that allows you to fetch and manipulate data from a database using an object-oriented programming paradigm. Java Persistence API (JPA) provides object-relational mapping for Java developers. Hibernate is a Java-based JPA implementation.
  2. The entity class is just a standard Java class that is annotated with the @Entity annotation. You have to implement constructors, fields, getters, and setters inside the class. The unique ID field(s) are annotated with the @Id annotation.
  3. You have to create a new interface that extends the Spring Data CrudRepository interface. You define the entity and the type of the id field in the type arguments—for example, <Car, Long>.
  4. CrudRepository provides all CRUD operations to your entity. You can create, read, update, and delete your entities using CrudRepository.
  5. You have to create...
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 £16.99/month. Cancel anytime