2 votes
Accepted
Customize spring data jpa repository's query to avoid fetch eager fields
You can use EntityGraph annotation before your Query to define a query's fetch plan. If you define an empty attribute paths for it you are basic saying to don't fetch anything, otherwise you can ...
2 votes
Spring Boot (4.0.0) Cannot Connect to MongoDB in Docker Compose Network
Looks like you are following a tutorial/information using Spring Boot 3 and decided to use Spring Boot 4. Properties are now in the spring.mongodb instead of spring.data.mongodb namespace. So you are ...
1 vote
JPA Postgres jsonb collection type with multiple types fails on save
I know probably a bit late for you, but since i ran into a similar error, for me in kotlin implementing Serializable on the base class fixed the issue. So based on your example: abstract class Pets ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
spring-data-jpa × 23394java × 11751
spring-boot × 10731
spring × 9294
hibernate × 7563
jpa × 6054
spring-data × 3755
mysql × 1308
spring-mvc × 1218
postgresql × 1144
jpql × 741
sql × 725
spring-data-rest × 506
kotlin × 376
spring-security × 329
oracle-database × 327
querydsl × 326
h2 × 318
rest × 317
hibernate-mapping × 270
spring-transactions × 258
database × 244
jpa-2.0 × 217
spring-batch × 210
transactions × 208