Tuanhdotnettuanhnet.hashnode.dev·Dec 17, 2024Methods to Optimize Database Queries Using Query Hints in Spring Data JPASource: Methods to Optimize Database Queries Using Query Hints in Spring Data JPA 1. Understanding Query Hints in Spring Data JPA Query Hints are a mechanism in JPA that allows developers to provide hints to the underlying JPA provider about h...hibernate
Tuanhdotnettuanhnet.hashnode.dev·Dec 6, 2024Techniques for Using @NoRepositoryBean in Spring Data JPA: A Comprehensive GuideSource: Techniques for Using @NoRepositoryBean in Spring Data JPA: A Comprehensive Guide 1. Understanding @NoRepositoryBean The @NoRepositoryBean annotation is part of the Spring Data JPA framework and is used to indicate that an interface or ...hibernate
bagheemaprineto.hashnode.dev·Nov 2, 20241장 [JPA 소개] p.29~p.5224/11/04 1장. JPA 소개1.1 SQL과 문제점1.1.1 반복, 반복 그리고 반복1.1.2 SQL에 의존적인 개발1.1.3 JPA와 문제 해결1.2 패러다임의 불일치1.2.1 상속1.2.2 연관관계1.2.3 객체 그래프 탐색1.2.4 비교1.2.5 정리1.3 JPA란 무엇일까?1.3.1 JPA 소개1.3.2 왜 JPA를 사용해야 하는가?1.4 정리📚 자바 ORM 표준 jpa 프로그래밍책
Robert Niestrojrobertniestroj.hashnode.dev·Oct 22, 2024A Guide to Logging SQL Queries in Hibernateshow-sql=true show-sql is the basic option in Hibernate to display the generated SQL Statements. It does print the statements to the console, so it is only a viable option if you analyze the output generated by Hibernate on a developer machine in an ...1.0K readsJava
Jong-Dae Parkjdpark.hashnode.dev·Sep 25, 2024Spring Data JPA Dynamic Projections1] 기존 Projections 특정한 Entity의 컬럼을 전부 가져오고 싶지 않을 때, 기존의 경우는 메서드마다 record를 생성하였다. 이때, 출처에서 적힌 것처럼, 여러 메서드가 하나의 record를 쓰는 경우가 생기게 된다. 예를 들어, 컬럼이 id, name, genre, 등등이 있을 때 기존에 id와 name만을 가져오는 record가 있을 경우 id, name, genre를 가져오는 메서드를 만들 경우 기존의 record에 ge...jpa
Robert Niestrojrobertniestroj.hashnode.dev·Sep 24, 2024How JPA works from your Java code to the DatabaseA question I like to ask developers during job interviews is how JPA works from application code down to the database. The answer tells me how someone understands this complex tech stack. As I work with the Spring Framework I ask this question in the...9 likes·10.9K readsJava
OBULIPURUSOTHAMAN Kobulipurusothaman.hashnode.dev·Sep 20, 2024Spring Boot & RepositoryIn Spring Boot, the Repository pattern is used to encapsulate the logic required to access data sources. The repository serves as a middle layer between the data source (database) and the business logic, promoting clean separation of concerns and bet...26 likes·236 readsSpringboot
Gwon Honggwonhong.hashnode.dev·Sep 19, 2024JPA의 lazy loading과 read committed글의 목적 JPA에서 lazy loading(FetchType.LAZY)을 사용해 N+1 문제를 해결할 수 있다고 한다. 그런데, 격리 레벨이 각각 repeatable read, read committed인 DBMS와 함께 사용 시 어떻게 작동하게 될까? 라는 질문에 대답하고자 한다. 공통 상황 Transaction A와 B가 있다고 하자. A에서 table T의 1~10번째 row를 select했다. 그러나 이 row들은 lazy loadi...repeatable read
Tuanhdotnettuanhnet.hashnode.dev·Sep 4, 2024Bulk Insert in Spring Boot: A Comprehensive GuideSource: Bulk Insert in Spring Boot: A Comprehensive Guide 1. Introduction to Bulk Insert in Spring Boot Bulk insert refers to the process of inserting multiple records into a database in a single operation. This technique is particularly usefu...Spring
Tuanhdotnettuanhnet.hashnode.dev·Aug 25, 2024Reasons Why You Should Understand the Differences Between JPA and HibernateSource: Reasons Why You Should Understand the Differences Between JPA and Hibernate 1. Introduction to JPA and Hibernate 1.1 What is JPA? JPA is a specification, meaning it defines a set of guidelines and rules for ORM in Java. It is not ...jpa