Postgresql – Getting an error 'Multiple ResultSets were returned" while running multiple select queries via JPA EntityManager
To achieve better performance by reducing multiple DB calls, I want to execute multiple select queries in the same DB call. I'm using PostgresSQL database (version 14.9), Java (version 17) and Springboot (version 3.0.6). Here is my code: private final…