{"repo":"AnghelLeonard/Hibernate-SpringBoot","free":true,"listed":false,"github":"https://github.com/AnghelLeonard/Hibernate-SpringBoot","clone":"git clone https://github.com/AnghelLeonard/Hibernate-SpringBoot.git","description":"Collection of 300+ best practices for Java persistence performance in Spring Boot applications","language":"Java","stars":1373,"topics":["java","hibernate","hibernate-jpa","springboot","persistence","spring-data","jpa","jdbc","sql","functions"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"If you just want to level up to Spring Boot 4 with Hibernate 7 then follow this repo Best Performance Practices Hibernate 5/6 & Spring Boot 2 If you need a deep dive into the performance recipes exposed in this repository then I am sure that you will love my book \"Spring Boot Persistence Best Practices\" If you need a hand of tips and illustrations of 100+ Java persistence performance issues then \"Java Persistence Performance Illustrated Guide\" is for you. Hibernate & Spring Boot Samples 1. How To Store UTC Timezone In MySQL Description: This application is a sample of how to store date, time, and timestamps in UTC time zone. The second setting, useLegacyDatetimeCode is needed only for MySQL. Otherwise, set only hibernate.jdbc.time zone . Key points: - spring.jpa.properties.hibernate.jdbc.time zone=UTC - spring.datasource.url=jdbc:mysql://localhost:3306/screenshotdb?useLegacyDatetimeCode=false ----------------------------------------------------------------------------------------------------------------------- 2. View Binding/Extracted Params Via Log4J 2 Description: View the prepared statement binding/extracted parameters via Log4J 2 logger setting. Key points: - for Maven, in pom.xml , exclude Spring Boot's Default Logging - for Maven, in pom.xml , Add Log4j 2 Dependency - in log4j2.xml add, Output example: ----------------------------------------------------------------------------------------------------------------------- 3. How To View Query Details Via DataSource-Proxy","default_branch":null,"files":null,"tree":[],"storefront":"/r/AnghelLeonard","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AnghelLeonard/Hibernate-SpringBoot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}