Post

2023-06-23-TIL

2023-06-23-TIL

Today I Learned

Redis Sentinel

  • https://redis.io/docs/management/sentinel/

Update Entity with MapStruct

  • https://ryumodrn.tistory.com/22

Design Database for Multi-Category Attribute

  • https://stackoverflow.com/questions/36164338/design-database-for-multi-category-attribute

Subquery in QueryDSL

  • https://jojoldu.tistory.com/379
  • https://stackoverflow.com/questions/29062959/how-to-write-subquery-in-querydsl

JPA @EntityGraph

  • https://itmoon.tistory.com/77

Fetch Join

  • https://kihwan95.tistory.com/12

JPA getOne(), findOne

  • https://circlee7.medium.com/jpa-getone-id-findone-id-aa9676dc666d

@Transactional self-invocation (in effect, a method within the target object calling another method of the target object) does not lead to an actual transaction at runtime

하나의 서비스 클래스에서 트랜잭션 메서드를 실행하면 self-invocation 관련 에러가 발생한다. 따라서 위로 끌어올려서 추상화한 클래스를 따로 두던지, 레파지토리에 의존하여 직접 끌어다 써야한다.

  • https://stackoverflow.com/questions/23931698/spring-transactional-annotation-self-invocation
  • https://yeonyeon.tistory.com/283

JWT with Spring Boot

  • https://www.youtube.com/watch?v=KxqlJblhzfI
  • https://www.javainuse.com/spring/boot-jwt
  • https://www.toptal.com/spring/spring-security-tutorial

failed to lazily initialize a collection of role

@Transactional을 안 붙여주어서 에러가 발생했다.

  • https://www.inflearn.com/questions/33949/failed-to-lazily-initialize-a-collection-of-role-%EC%98%A4%EB%A5%98-%EA%B4%80%EB%A0%A8-%EB%AC%B8%EC%9D%98
  • https://jungguji.github.io/2021/01/22/failed-to-lazily-initialize-a-collection-of-role/
This post is licensed under CC BY 4.0 by the author.