
Develop Spring Boot applications with Hibernate and JPA, connect databases via properties, map tables to Java classes, and build an API supporting create, read, update, delete with repositories and queries.
Download the Oracle JDK for your operating system by selecting the Windows installer, accepting the Oracle license, and finishing the download and installation.
Install the JDK by running the downloaded installer, clicking through prompts, and choosing or changing the installation path before finishing.
Install the eclipse integrated development environment by downloading the most recent 2021 release and clicking the download button twice to start coding.
Install Eclipse by selecting the package for enterprise, Java, and web developers, configure the JDK, accept the Eclipse license, complete the installation, and launch Eclipse.
Create a workspace by making a folder for users to save projects, then select and confirm the workspace before proceeding.
Learn to download and install a local server for database work, including finding a reliable download from SourceForge, then installing the server on your computer for speed.
Start WampServer by launching it from your computer; watch the bottom-right icon color change from red to yellow to green to confirm the server is active.
Download MySQL Workbench by visiting Google, clicking the first link, selecting Windows, and starting the download, then wait for the download to complete.
Download and install Postman to test APIs, using it as an http client to send requests and view varied responses.
Install MySQL Workbench by following the installer prompts, configure the local workbench, and connect to the server using the provided password.
Install the Spring Tool Suite plugin in Eclipse via the Eclipse Marketplace by searching for Spring Tools, selecting the version, installing, and restarting Eclipse to complete the setup.
Create a spring project in Eclipse by selecting file, new, other, and spring starter project, then add dependencies: mysql driver, spring data GPA, and spring web, then finish.
Explore restructuring a Spring project in Eclipse, organize code under Java and resources folders including static and templates, use an application.properties file, and review dependencies listed in the dependencies file.
Launch a Spring Boot project by running the main class annotated with @SpringBootApplication, bootstrap the application, and start all components while addressing a data source configuration error.
Disable auto configuration in Spring Boot to exclude the data source auto configuration via the Spring Boot application annotation, restart the project, and observe the startup succeed.
Define a rest controller to expose resources via http methods, map endpoints in a controller class, and auto-convert responses to json or xml in a spring boot rest app.
Explore how a Spring Boot controller uses the @RequestMapping annotation to route HTTP requests, enabling get, delete, and put mappings to implement a RESTful API endpoint.
Launch the Spring Boot API, define a controller method annotated with @GetMapping for the api/students/school path, restart, and verify a successful OK response via Postman.
Map endpoints in Spring Boot using @GetMapping to create a home controller method that returns a string, then run the app and call the home endpoint.
Explore spring boot, hibernate, and jpa mastery as you implement an api that returns a list of strings, such as student names, from a controller using java 18.
Refactor the controller to a student controller and implement an api returning a list of student entities, including a sample student named John with age 10, job student, and email.
Define the web layer as the public interface through controllers and the service layer for crud operations, communicating with repositories that extend a repository to perform these operations.
Discover the service layer in Spring by creating a student service class and annotating it with @Service to have Spring recognize and manage it, following the controller and entity pattern.
Develop an API with a service and controller that returns the list of students by invoking service methods, and prepare for adding annotations in Spring Boot.
Introduce dependency injection, showing how objects accept dependencies from the outside rather than creating them, and how to enable it by importing the appropriate annotation.
Inject the student service into the student controller using constructor injection and the @Autowired annotation in spring boot. See the API return a list with one object named Mary.
Create a user management database in MySQL Workbench, then refresh to see the new database appear.
Create a new Spring Boot project in Eclipse for user management, including MySQL Driver, Spring Data, and Spring Web, then locate it in Project Explorer.
Configure the application.properties to establish the base database connection by setting the database name, username, and password, and enable hibernate mapping with hbm2ddl.auto=update to automatically create or update tables from entities.
Map a class to a database table with the @Entity annotation in Spring Boot using Hibernate and JPA. See user and chocolate examples in the demo package mapping to tables.
Explore how to map a user class to a database table with Spring Boot, using @Entity and the @Table annotation to customize the table name via the name parameter.
Define entity fields for a user, including id, name, age, and username; generate a constructor with name and age, getters and setters for id and username, and save the entity.
Map fields to database columns with @Column(name=...), and designate the id as @Id with @GeneratedValue to auto-generate the primary key, then save the user class and refresh schemas.
Explore building a user repository by creating a user repository interface, annotating it, and extending JpaRepository to access built-in repository methods for the user entity with a long primary key.
Learn to get all users from the database using a repository, a service, and a rest controller with a get mapping to the /user path in spring boot.
Start the Spring Boot api and fetch all users with a Postman request to the users endpoint, reading from the users table, and observe an empty list.
Create an API to insert user record using a repository and the @RequestBody annotation, exposing a post mapping that accepts a User object and saves it to the user table.
We create a dto class to collect user details, define fields like username and age, generate constructors and getters and setters, and save the file.
Map the user detail fields to a new entity, save it via the repository, and route through the controller and service to create a new user.
Use Postman to post a new user to the Spring Boot API, sending a JSON body with username and age, and verify the new record appears in the user table.
Implement a get mapping endpoint that uses @PathVariable to retrieve a user by id, calling the repository's find by id through the service and returning an optional user.
Delete a user record from the database using a repository, via a controller and service. The flow uses Hibernate to delete the correct entity and calls the repository's delete method.
Implement a custom repository method in Spring Boot, Hibernate and JPA to return all users by a given name, handling the field name and capitalizing the first letter.
Create a custom repository method to fetch users by username in a Spring Boot app. Expose it via a controller endpoint using a path variable and delegating to the service.
Run a custom findBy query in a Spring Boot API and test with Postman. Non-existent names return no results, while John returns a user with id 1 and name John.
Link multiple database tables by using JPA annotations such as one-to-one, one-to-many, and many-to-many, and preserve these mappings within entities.
Create a new eclipse project using spring boot dependencies, including spring data jpa and spring web, to implement one-to-one, one-to-many, many-to-one, and many-to-many annotations between tables.
Create a user management database in workbench, then configure the application properties (spring.datasource and spring.jpa) to enable a MySQL connection with Spring Boot and Hibernate.
Create the user management database on the workbench and configure the application properties file, perform a Marvin update, link tables, and run the Spring Boot project to verify startup.
Create two connected entities in Spring Boot with Hibernate and JPA, using generated value for id fields and table and column mappings for user and address, with constructors and accessors.
Map a one-to-one relationship between user and address using the @OneToOne annotation in a Spring Boot, Hibernate, and JPA setup, and verify the mapping in MySQL Workbench.
Define a book entity with id, title, and description, and map many books to one user via the @ManyToOne annotation to establish the user-book relationship.
Are you a java spring developer interested in mastering Spring Data, Spring Boot, Hibernate and JPA?
Then this course is for you.
Java Spring Framework is a popular, open source, enterprise-level framework for creating standalone, production-grade applications that run on the Java Virtual Machine (JVM).
Java Spring Boot is a tool that makes developing web application and microservices with Spring Framework faster and easier.
These work together to provide you with a tool that allows you to set up a Spring-based application with minimal configuration and setup.
Spring data JPA removes all the boiler plate coding that we write to create Data Access Layer for our applications while using
JPA and ORM tools like Hibernate.And with the power of spring boot there is zero xml or java based configuration required.
What Will I Learn?
Concepts of ORM,Spring Data JPA and Hibernate
CRUD operations
Learn JPA
Use Paging and Sorting with of Hibernate Mappings
Implement Component Mapping
Learn Spring Data and Spring Boot
In this course we will learn how to create projects in spring Boot, Spring data, Hibernate and JPA.
At the end of this course you will be able to use all of these components.
I am waiting for you to start this course together.