본문 바로가기 메뉴 바로가기

Jaime's 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Jaime's 기술 블로그

검색하기 폼
  • All (499)
    • IntelliJ IDEA (8)
    • SpringBoot (83)
      • Web Application 만들기 (71)
      • JWT 튜토리얼 (5)
    • Java (19)
    • JPA (33)
    • Querydsl (14)
    • SRE (7)
    • gRPC (10)
    • macOS (7)
    • Docker (1)
    • Linux (5)
    • R (5)
    • Test (3)
    • ETC (13)
    • Algorithm (265)
      • LeetCode (258)
    • Retrospect (4)
    • git (1)
    • Architecture (8)
    • Book (10)
      • 함께 자라기 (7)
      • 프로그래머의 뇌 (3)
    • Essay (1)
  • 방명록

2021/07/21 (2)
[Querydsl] 서브 쿼리(Subquery), Case(when, then), 상수(Constant), concat

모든 소스 코드는 여기 있습니다. 이전 포스팅에 이어서 Querydsl의 기본 문법을 소개합니다. 서브 쿼리(Sub Query) SQL을 직접 사용하거나 MyBatis 등을 사용하는 레거시에서 많이 볼 수 있는 서브 쿼리는 실제로 join을 사용하거나 쿼리를 나눠서 처리하는 것이 성능상 유리할 때가 있습니다. 하지만 불가피하게 사용해야 할 상황들을 위해 Querydsl에서의 서브 쿼리 사용 방법을 확인해 보겠습니다. 서브 쿼리 사용을 위해선 JPAExpressions를 사용합니다. 먼저 선수들 중 나이가 가장 많은 선수를 서브 쿼리를 이용해 조회해보겠습니다. package io.lcalmsky.querydsl.domain; import com.querydsl.jpa.JPAExpressions; impor..

Querydsl 2021. 7. 21. 12:39
[LeetCode] 116. Populating Next Right Pointers in Each Node (Java)

소스 코드는 여기 있습니다. 문제는 여기 있습니다. Problem You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition: struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially,..

Algorithm 2021. 7. 21. 01:51
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • 스프링 데이터 jpa
  • gRPC
  • Jackson
  • intellij
  • spring boot application
  • Spring Data JPA
  • Spring Boot JPA
  • leetcode
  • 헥사고날 아키텍처
  • JSON
  • Spring Boot Tutorial
  • QueryDSL
  • JPA
  • r
  • 클린 아키텍처
  • proto3
  • 알고리즘
  • 함께 자라기 후기
  • 스프링 부트 튜토리얼
  • spring boot app
  • 함께 자라기
  • 스프링 부트
  • Linux
  • 스프링 부트 회원 가입
  • Spring Boot
  • 스프링부트
  • spring boot jwt
  • 스프링 부트 애플리케이션
  • @ManyToOne
  • Java
more
«   2021/07   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바