Spring Boot Quick Start 29 - Making Crud Operations with Repository

Java Brains · 582K views · 2016 · 14:14

Open on YouTube

Web developmentSoftware architecture & designtutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they are following when they hit errors or questions with Spring Data repositories, Derby schema setup, or the service layer.

Recommended by 1 people across 1 different months, 2017 to 2024.

What it is

A 14-minute lesson from Java Brains' Spring Boot Quick Start course showing how to use CrudRepository to run basic create, read, update and delete operations against an embedded database. It is episode 29 of a longer series and builds on the course's earlier Topic and TopicService code.

What people said

Recommends Chris F · 2024-05 · Stack Overflow · on “What is this Apache Derby syntax error, and how can I fix it?”

I'm following this excellent Spring Boot Quick Start [this video] tutorial. I was doing well until I got to session #29, where I'm connecting my service to the embedded Apache Derby DB, and implementing the GET and PUT commands. I pretty much followed the author's code, and have the following. package io.javabrains.springbootstarter.topc; import jakarta.persistence.Entity; import jakarta.persistence.Id; @Entity public class Topic { @Id private String id; private String name; private String desc; public Topic(){} public Topic(String id, String name, String desc) { super(); this.id = id; this.name = name; this.desc = desc; } public String getId() { return id; } public void setId(String id) { this.i

Cites Reed · 2017-09 · Stack Overflow · on “Why do we need a service layer?”

I'm currently learning Spring Boot and I've seen how people create a controller, inject the service class and in the service class inject the repository. Why do we need the service class as a middleman and why can't we just inject the repository into controller? Here's the tutorial that confused me: [this video]

Cites Michael John Nowak · 2018-03 · Stack Overflow · on “Spring boot database application”

Im working on the project with some video tutorial. [this video] Author in TopicService class is using inside the method findOne() comend and delete without creating a method for them. When Im doing same thing step-by-step I was unable to do it, any ideas why? I was extending CrudRepository and apparently this repo is giving you this access to findOne and delete commends.When Im trying to build project and going to [LINK] Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Thu Mar 08 17:16:37 GMT 2018 There was an unexpected error (type=Not Found, status=404). No message available [LINK] << here I upload Thank you for your help

Cites HITESH GUPTA · 2021-03 · Stack Overflow · on “Schema 'SA' does not exist and dropping table”

Ya, I also face the same problem while watching his [this video] videos. I just made changes in the application.properties as follows: #JPA spring.jpa.generate-ddl=true spring.jpa.hibernate.ddl-auto=update spring.jpa.database=default spring.jpa.show-sql=true Thank you.