2023-05-16-TIL

Today I Learned

findAll vs findById

findById에서는 예외가 발생하지 않는데, findById에서만 바로 발생하는 이유?

  • https://vladmihalcea.com/spring-data-findall-anti-pattern/
  • https://javatute.com/jpa/crudrepository-findallbyid-example-using-spring-boot/
  • https://github.com/spring-projects/spring-data-redis/issues/2130

Performance Pitfalls when using Spring Data JPA

  • https://thorben-janssen.com/6-performance-pitfalls-when-using-spring-data-jpa/
  • https://thorben-janssen.com/spring-data-findbyid-getone-getbyid-and-findone/

Entity Association with JPA

  • https://thorben-janssen.com/best-practices-for-many-to-many-associations-with-hibernate-and-jpa/
  • https://thorben-janssen.com/best-practices-many-one-one-many-associations-mappings/
  • https://ocwokocw.tistory.com/138

Conditional Query in Spring Data JPA

  • https://medium.com/codex/how-to-easily-do-conditional-querying-with-spring-data-jpa-123079aa09a6
  • https://docs.spring.io/spring-data/jpa/docs/current/reference/html/

Spring Data JPA

  • https://docs.spring.io/spring-data/jpa/docs/current/reference/html/
  • https://github.com/spring-projects/spring-data-jpa

How to Distinguish Added, Modified, and Deleted Items

  • https://powerusers.microsoft.com/t5/Building-Flows/When-an-event-is-added-updated-or-deleted-duplicate-action-when/m-p/598148#M78964

Java Record Compact Constructor

  • https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html
  • https://docs.oracle.com/en/java/javase/20/language/records.html
  • https://openjdk.org/jeps/395
  • https://www.digitalocean.com/community/tutorials/java-records-class
  • https://www.youtube.com/watch?v=gJ9DYC-jswo
  • https://blogs.oracle.com/javamagazine/post/java-record-compact-canonical-constructor
  • https://stackoverflow.com/questions/74083123/java-record-compact-constructor-bytecode
  • https://mikemybytes.com/2022/02/16/java-records-and-compact-constructors/
  • https://blog.hexabrain.net/399
  • https://blog.vvauban.com/blog/java-trick-compact-record-constructors
  • https://mikemybytes.com/2022/02/16/java-records-and-compact-constructors/