현실을 넘어
close
프로필 배경
프로필 로고

현실을 넘어

  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
  • 홈
  • 태그
  • 방명록

[Qdsl, JPA] @PersistenceContext 의 역할

개요Java Persistence API ( JPA ) 의 일부이다.컨테이너 관리형 영속성 컨텍스트에 대한 EntityManager 주입의 역할을 수행한다.영속성 컨텍스트의 역할엔티티 인스턴스의 생명주기를 관리한다.DB와 상호작용을 담당한다.사용은 언제하나?DAO(서비스 레이어) 혹은 Repository 계층에서 사용한다.해당 어노테이션 역할JPA 영속성 컨텍스트에 접근하기 위해 사용되는 EntityManager를 주입받기 위해 사용된다.Spring Framework 에서 해당 어노테이션을 통해 컨테이너가 관리하는 EntityManager 를 Service 레이어 혹은 레포 레이어에 제공이점 자원의 관리DB 연결을 효율적으로 ㄱㄴ트랜잭션의 관리트랜잭션 범위에서 영속성 컨텍스트를 제공한다.Thread Sa..

  • format_list_bulleted 자바/JPA
  • · 2024. 2. 21.
  • textsms
error: package com.querydsl.core.types does not exist

error: package com.querydsl.core.types does not exist

error: package com.querydsl.core.types does not exist 가 발생함.//querydsl 추가 시작 def querydslDir = "src/main/generated/querydsl" querydsl { jpa = true querydslSourcesDir = querydslDir } sourceSets { main.java.srcDir querydslDir } compileQuerydsl { options.annotationProcessorPath = configurations.querydsl } configurations { compileOnly { extendsFrom annotationProcessor } querydsl.extendsFrom compileC..

  • format_list_bulleted 자바/QueryDsl
  • · 2024. 2. 21.
  • textsms

`JPAQueryFactory` 에서 NPE 발생

java.lang.NullPointerException at com.querydsl.jpa.impl.JPAProvider.getTemplates(JPAProvider.java:88) at com.querydsl.jpa.impl.JPAQuery.(JPAQuery.java:48) at com.querydsl.jpa.impl.JPAQueryFactory.query(JPAQueryFactory.java:138) at com.querydsl.jpa.impl.JPAQueryFactory.select(JPAQueryFactory.java:72) at com.querydsl.jpa.impl.JPAQueryFactory.selectFrom(JPAQueryFactory.java:102) at com.psj.itembrow..

  • format_list_bulleted 자바/QueryDsl
  • · 2024. 2. 21.
  • textsms

[팁] compareTo 기준점

compareTo 기준 어느 쪽을 기준으로 정렬되는 건지 알기 어려울때..두 사람의 키 를 비교하는 것과 비슷하다.1. 첫번 째 사람의 키가 더 크다면compareTo 의 결과 양수키 큰놈이 더 뒤로 간다.2. 두 사람의 키가 동일comapreTo 결과 03. 첫 번째 사람의 키가 더 작다면compareTo 결과 음수 키 작은 놈이 앞으로 온다. Uploaded by N2T

  • format_list_bulleted 자바/일반
  • · 2024. 2. 19.
  • textsms

[프로그래머스] 행렬의 덧셈 (Java)

package org.example.알고리즘.행렬의덧셈; import java.util.Arrays; /**/ class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(Arrays.deepToString(solution.solution(new int[][]{{1, 2}, {2, 3}}, new int[][]{{3, 4}, {5, 6}}))); } public int[][] solution(int[][] arr1, int[][] arr2) { ArrayClass arrayClass1 = new ArrayClass(arr1); ArrayClass arrayClass..

  • format_list_bulleted 자바/알고리즘
  • · 2024. 1. 14.
  • textsms

[QueryDsl] QueryDslSupport 클래스 대안

package com.example.springboot3.test.example.qdsl; import com.mysema.commons.lang.Assert; import com.querydsl.core.types.EntityPath; import com.querydsl.core.types.Expression; import com.querydsl.core.types.dsl.PathBuilder; import com.querydsl.jpa.impl.JPAQuery; import com.querydsl.jpa.impl.JPAQueryFactory; import jakarta.annotation.PostConstruct; import jakarta.persistence.EntityManager; import..

  • format_list_bulleted 자바/QueryDsl
  • · 2023. 11. 19.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • navigate_next
공지사항
  • ㅇ
전체 카테고리
  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
최근 글
인기 글
최근 댓글
태그
  • #자바
  • #JPA
  • #Kotlin
  • #객사오
  • #리팩토링
  • #QueryDSL
  • #도메인주도개발
  • #알고리즘
  • #객체지향
  • #ddd
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바