JPA beyond copy paste by Jakub Kubrynski https://youtu.be/EZwpOLCfuq4 - this is video might be a little bit outdated but still contains a lot of useful tips, the content of this video is described here:
- https://www.youtube.com/watch?v=EZwpOLCfuq4&lc=Ugxp9JpfgF9Hv5nfGyl4AaABAg
- https://speakerdeck.com/jkubrynski/jpa-beyond-copy-paste
Vlad Mihalcea is Java Champion and author of probably the best book about Hibernate. His blog and tutorials are great.
- https://vladmihalcea.com/books/high-performance-java-persistence/
- https://vladmihalcea.com/tutorials/hibernate/
- https://www.youtube.com/channel/UCYeDPubBiFCZXIOgGYoyADw/playlists
N+1 problem
- https://www.javacodemonk.com/what-is-n-1-problem-in-hibernate-how-will-you-identify-and-solve-it-894097b9
- https://vladmihalcea.com/how-to-detect-the-n-plus-one-query-problem-during-testing/
- https://dziadeusz.github.io/prevent-n+1-from-creeping-in/
List vs Bag vs Set
equals & hashcode and UUID usage
- https://thoughts-on-java.org/ultimate-guide-to-implementing-equals-and-hashcode-with-hibernate/
- https://stackoverflow.com/questions/5031614/the-jpa-hashcode-equals-dilemma
- https://vladmihalcea.com/hibernate-and-uuid-identifiers/
Performance tips
- https://vladmihalcea.com/14-high-performance-java-persistence-tips/
- https://www.slideshare.net/VladMihalcea/jpa-and-hibernate-performance-tips
- https://www.youtube.com/watch?v=BTdTEe9QL5k
Optimistic locking
- https://vladmihalcea.com/optimistic-locking-version-property-jpa-hibernate/
- https://vladmihalcea.com/a-beginners-guide-to-database-locking-and-the-lost-update-phenomena/
Common pitfalls
- https://codete.com/blog/jpa-8-common-pitfalls/
- https://codete.com/blog/5-common-spring-transactional-pitfalls/
JPA 2.2 Streaming (fancy stuff)