JPA

JPA

The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects/classes and a relational database. It is part of the EJB 3.0 specification and is the industry standard approach for Object to Relational Mapping (ORM).

Map Enum Type to Column in Hibernate JPA

How to map an enumeration type (Enum) in Java to a Column in database with Hibernate/JPA with two cases:
- The column stores string values
- The column stores number values

#hibernate #jpa 

 

 Map Enum Type to Column in Hibernate JPA

Spring Data JPA Custom Repository

You will learn how to create custom spring data JPA repository in this video.

Git Hub URL: https://github.com/shameed1910/spring-jpa-custom-repo.git

#jpa #spring-boot 

Spring Data JPA Custom Repository

Create A Spring Boot with PostgreSQL and Docker Compose

You will learn how to create a  Spring Boot + JPA/Hibernate + PostgreSQL RESTful CRUD API Example with a PostgreSQL database to run inside a Docker container and how to auditing, tracking and logging user activity across the application project by using JPA Auditing


GitHub Link: https://github.com/shameed1910/spring-postgres-docker.git

#spring-boot #jpa #postgresql 

Create A Spring Boot with PostgreSQL and Docker Compose
Joseph  Murray

Joseph Murray

1632220860

Top 5 Spring Data JPA Courses for Java Developers in 2021

These courses are created by Java and Spring Framework experts like Eugen Paraschive and are available on popular online learning platforms like Udemy. Most of these courses are very affordable, particularly Udemy courses as you can join them for just $10 on Udemy sales which happen every now and then.

#spring #Java #jpa 

Top 5 Spring Data JPA Courses for Java Developers in 2021
Mrinal Raj

Mrinal Raj

1629963365

Getting Started with Spring Data JPA

Spring Data JPA is a powerful framework that lets you interact with your database without writing a lot of boilerplate code.

00:00​ - Intro
00:37 - Creating a New Spring Boot Project
03:13​ - Creating an Employee Entity
08:03​ - Creating a Repository Interface
09:40​ - Configuring your Database
12:02 - Writing from your Application to the Database
14:50 - Creating a Data Source
18:03​ - Declaring a Query Method

*Author: Dalia Abo Sheasha

You can find the GitHub repository containing the final project here: https://github.com/daliasheasha/SpringDataJPA 

#spring #data #jpa #intellij #database #entity #java #programming

Getting Started with Spring Data JPA
Sherman  Zemlak

Sherman Zemlak

1629802500

Pagination & Sorting in REST API using Spring Data JPA

Learn how to add pagination & sorting to your Spring Boot REST API using Spring Data JPA.

We create a web application using the spring starter (http://start.spring.io/). We then expose an API for books. We then use Spring Data JPA to add pagination & sorting to the API.

Check out the code on GitHub here: https://github.com/kriscfoster/Spring-Boot-Pagination-Sorting

Don’t forget to Subscribe here: https://www.youtube.com/channel/UCWkzkhQ3syxBjjAYwqCbzYg?sub_confirmation=1

#rest #api #jpa #spring

Pagination & Sorting in REST API using Spring Data JPA
Sherman  Zemlak

Sherman Zemlak

1629716040

Spring Data JPA Relationships Tutorial - ManyToMany, ManyToOne & OneToMany

Learn how to use Spring Data JPA relationships such as ManyToMany, ManyToOne & OneToMany.

We create a web application using the spring starter (http://start.spring.io/). We then expose an API for 3 entities. We then use Spring Data JPA to create relationships between these entities.

Check out the code on GitHub here: https://github.com/kriscfoster/Spring-Data-JPA-Relationships

Don’t forget to Subscribe here: https://www.youtube.com/channel/UCWkzkhQ3syxBjjAYwqCbzYg?sub_confirmation=1

#spring #jpa

Spring Data JPA Relationships Tutorial - ManyToMany, ManyToOne & OneToMany

Spring Boot Export Data to Excel with Apache POI

Learn to code Export to Excel function for an existing Spring Boot application using Apache POI library. The export feature allows the user to download data from database as Microsoft Excel document.

I will implement export Excel for a Spring Boot project that uses Spring Data JPA, Hibernate, Thymeleaf and MySQL. Exporting a list of users to Microsoft Excel xslx document. 
You will also learn how to generate Excel file name based on current date time, and how to format cells in the Excel file.

#jpa #springboot #hibernate #mysql 

 

Spring Boot Export Data to Excel with Apache POI

Filter / Search Functionality with Spring Data JPA

Learn to implement filter/search functionality for an existing Spring Boot application with Spring Data JPA, Hibernate, Thymeleaf and MySQL database.
I will guide you to update an existing Spring Boot application to add filter function that allows the users to enter a keyword in search box to search for items in the database.
Bonus: implement filter/search in conjunction with pagination and sorting.

#springboot #jpa #hibernate #mysql 

Filter / Search Functionality with Spring Data JPA
Samanta  Moore

Samanta Moore

1628404680

How to Express JPA Queries as Java Streams

In this article, you will learn how to use the JPAstreamer library to express your JPA queries with Java streams. The idea around it is very simple but at the same time brilliant. That’s all.
 

#Java #jpa #express 

How to Express JPA Queries as Java Streams

Paging and Sorting with Spring Data JPA and Thymeleaf

Learn to implement pagination and sort for an existing Spring Boot application using Spring Data JPA, Hibernate, MySQL and Thymeleaf.

How to code pagination bar displaying total items (total rows), total pages, current page, page numbers, first page, previous page, next page, and last page.Throughout this tutorial, you will see Spring Data JPA and Thymeleaf make it very easy, simple and convenient to implement paging and sorting functionalities.

#springboot #jpa 

Paging and Sorting with  Spring Data JPA and  Thymeleaf

Spring Boot Security Role-based Authorization

Learn to use Spring Security to authorize users based on their roles (authorities) for a Spring Boot application. The credentials and authority are stored in MySQL database. Spring Data JPA with Hibernate is used for the data access layer. Thymeleaf is used for the view templates.

Here's what you will learn:
- Create tables in MySQL to store credentials and roles.
- Declare dependencies for Spring Security, Spring Data JPA, MySQL JDBC driver and Thymeleaf integration with Spring Secrity.
- Configure data source
- Code User & Role model classes.
- Code UserRepository interface.
- Implement UserDetails & UserDetailsService interfaces.
- Configure authentication & authorization

#springboot #jpa #hibernate 

 

Spring Boot Security Role-based Authorization

Secure A Spring Boot App with Hibernate JPA and MySQL

Learn to secure a Spring Boot application using Spring Security, Spring Data JPA, Hibernate and MySQL database. Implement login and logout functions for Java web applications based on Spring framework. The credentials are stored in MySQL database, and Spring Data JPA with Hibernate is used for the data access layer.

#springboot #jpa #mysql 

Secure A Spring Boot App with Hibernate JPA and MySQL

One To One JPA Entities

One To One JPA Entities

Learn more about my Spring Courses here. http://bit.ly/1RPhI2A

In this video, I look at setting up One to One JPA Entities.

#jpa

One To One JPA Entities

Introduction To Spring Data JPA

Introduction To Spring Data JPA

This is a free preview from my Spring Core Course available here - http://bit.ly/1UdFcQr

In this section of the course I’m introducing my students to Spring Data JPA. We’re going to use Spring Data JPA to replace a traditional JPA DAO CRUD implementation.

#spring #data #jpa

Introduction To Spring Data JPA