Yaroslav Prozorovbyka.hashnode.dev·Sep 29, 2023JPA Authentication Using DTO with Spring SecurityDTO (Data Transfer Object): Create a DTO (e.g., UserRegistrationDto) to transfer user registration data to your controller. Here's an example: @Data @AllArgsConstructor @NoArgsConstructor @Builder public class CreateUserRequest { private String ...DiscussSpring Data Jpa
ihatesaphybrisihatesaphybris.hashnode.dev·Aug 31, 2023Spring Data JPA Interview Questions and AnswersLàm thế nào để tạo một custom repository base trong Spring Data JPA và kết hợp nó với các repository khác? Để tạo một custom repository base trong Spring Data JPA và kết hợp nó với các repository khác, bạn cần làm theo các bước sau: Bước 1: Tạo Cus...DiscussSpring Data Jpa
Tamilselvendhirantamil.hashnode.dev·Aug 16, 2023How @PostLoad annotation works in Spring Boot JPATable of Contents Introduction🤞 How does @PostLoad annotation work🤷♂️ Conclusion🦾 Introduction The @PostLoad annotation in Spring Boot is a JPA annotation that is used to specify a callback method that will be invoked after an entity is load...DiscussJava
Manas Patramanasdroidtech.hashnode.dev·Aug 15, 2023JPA and Hibernate in simple terms.Let's first go by the conventional explanation of both of them. JPA stands for "Java Persistence API." It is a specification in the Java EE (Enterprise Edition) ecosystem that provides a standardized way to manage relational data in Java applications...Discussjpa
Aleksandre Ablotia (Zaccone)simplex-java.hashnode.dev·Aug 5, 2023Spring Boot and H2Project Details Project Name: Product Management System Project Description: A simple system with a REST API to add, update, and remove products from an H2 database. Tools Used: Java 17 Spring Boot 3.1.2 Spring Web Spring Data JPA Lombok H2 What is...Discuss·26 readsSpring BootSpringboot
Alex Kinyuaalexkinyua.hashnode.dev·Jul 31, 2023Pagination and Sorting SpringbootIn this blog, we will explore how to implement pagination and sorting using Spring Boot, a popular Java-based framework for building robust and scalable web applications. We will also use the employee Rest spring boot application from our previous ar...DiscussPagination
Asfaq Leeonleeonscoding.hashnode.dev·Jul 23, 2023Intro to Spring Data JPA. The Entity class and its annotationsJPA(Jakarta Persistence API) lets us map objects to a relational database. Formerly it was known as Java Persistence API. JPA is a specification of data persistence in Java applications. In this blog, I'm going to write about basic configurations and...Discussentity
Seyed Aliseyedali.hashnode.dev·Jul 14, 2023Implementing JWT In Spring Boot 3Introduction Web applications require authentication and authorization to ensure that only authorized users have access to certain resources and functionality. JWT (JSON Web Token) is a popular authentication mechanism that allows the client to authe...Discuss·40 readsSpringboot
Hamid Safdarihamidsafdari.com·Jul 11, 2023QueryDSL for JPAIf we could say Hibernate provides a way to map database tables to classes, QueryDSL does the same for queries. QueryDSL lets you leverage the same entities defined for Hibernate and uses them to make legible queries that closely resemble native SQL ...Discussjpa
Sohail Shahsohailshah.hashnode.dev·Jul 11, 2023JPA: One-To-One Relationship, Fetch type, Relationship Direction, And Query OptimizationIn the previous posts, we had only a single entity called the student. Let's create another entity named the library card. The library card entity will have its own table in the database with its own primary id column. @Entity @Table(name = "library_...DiscussJava