Christian LehnertProblog.christianlehnert.dev·Mar 1, 2024@MappedSuperclass with JPA and HibernateAs your application expands, so too does the complexity of your data model. You'll come across entities that share common attributes or behaviors, leading you to consider inheritance. However, inheritance in JPA and Hibernate can be a bewildering jun...Discuss·10 likes·103 readsSpring Boot into ActionJava
Venkata Thanoojthanooj.hashnode.dev·Mar 1, 2024Understanding Spring Data JPA: A Beginner's GuideSpring Data JPA is part of the larger Spring Data family which aims to simplify data access within the Spring application framework. It allows for the easy implementation of JPA based repositories. This abstraction layer allows for accessing and mani...DiscussSpring Data Jpa
Biagio Tozzibiagiotozzi.hashnode.dev·Jan 29, 2024Advanced and dynamic searching with Spring Data JPAI have often been asked to develop advanced search services. By advanced search I mean searches in which it’s possible to apply multiple filters on all (or almost all) fields such as: like, between, in, greater than, etc. So imagine having to build a...Discuss·1 like·88 readsJava
JaeHun Kimhodu.hashnode.dev·Jan 15, 2024JPA MySql Random 조회 (1) - order by rand()서문 요구사항 개발 중 데이터를 랜덤으로 조회할 필요가 생겼다. DB는 MySql을 사용하고 있다. Mysql은 rand()를 통해 랜덤 기능을 제공하며 데이터를 랜덤하게 조회하기 위해선 공식문서에도 나와있듯이 SELECT * FROM tbl_name ORDER BY RAND(); 와 같이 사용하면 된다. 애플리케이션 서버에서 이를 어떻게 구현할 지가 고민이었고 Spring Boot 2.7.5, JPA, QueryDsl 을 사용중이다. JPQL...Discuss·13 likes·38 readsSpringboot
Taehyeong Leejsonobject.hashnode.dev·Dec 28, 2023Essential Setup Guide to Kotlin + Spring Boot + JPA, and QuerydslOverview This article outlines the basic setup for performing CRUD operations on MySQL in a project based on Kotlin + Spring Boot + JPA. It utilizes Spring Data JPA, Infobip Spring Data Querydsl, and AWS JDBC Driver for MySQL. build.gradle.kts Add...Discuss·10 likes·185 readsSpring Boot
Robert Niestrojrobertniestroj.hashnode.dev·Dec 14, 2023@ManyToMany? Wait a moment.Sometimes in projects when modeling #JPA Entities we come to a point using the @ManyToMany annotation. Like for example the relationship between an Employee and a Project seems to be a classic example of a Many-to-Many relationship. An employee can w...Discuss·1.6K readsJava
Asfaq Leeonleeonscoding.hashnode.dev·Dec 4, 2023Spring Data JPA in Spring Boot[part-2]: one-to-one associationIn the previous article[Part-1], I've talked about the entities and JPA specification and its implementation with hibernate and some necessary annotations regarding JPA and hibernate. In this blog, I'm going to demonstrate how we can create mappings ...Discussjpa
Redha Bayu Anggararedhabayuanggara.hashnode.dev·Dec 2, 2023JDBC or ( JPA also Hibernate) in Spring FrameworkLet’s dive deep to settle on a framework for Database operations DDL JDBC Java Database Connectivity (JDBC) is an application programming interface (API) for the Java programming language that defines how a client can access a database. In February 1...Discuss·38 readsJava
Merge Simpsonletsdev.hashnode.dev·Nov 13, 2023Spring Data JPA: DB 님, 안 쓰는 컬럼은 빼고 주세요 (JPA Projection)JPA Repository로 조회하기 👩🎓 이런 글을 보시는 분들은 대부분 JPA Repository의 기본 조회 요령을 아실 것 같습니다만, 그래도 기본 전제는 공유해야 글에 좋겠죠. ✨ JPA Repository는 기본적으로 몇 가지 조회 메서드를 제공하고, 또 네이밍 규칙만 따르면 알맞게 동작하는 커스텀 조회 메서드를 추가할 수 있습니다. 다음은 네이밍 규칙의 간단한 예시입니다. findImSoCoolByUsername(String ...Discuss·110 readsjpa
Vinod Avinodaw.hashnode.dev·Nov 7, 2023Introduction to JPAJakarta Persistence API (formerly known as Java Persistence API) provides developers with an object/relational mapping facility to manage relational data in Java applications. Persistence means any mechanism by which Java objects outlive the applicat...Discussjpa