Skip to main content
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 ...
Carlos Jafet Neto's user avatar
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 ...
M. Deinum's user avatar
  • 127k
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 ...
smurfy's user avatar
  • 636

Only top scored, non community-wiki answers of a minimum length are eligible