Hibernate duplicates query for non-existing entities with OneToOne relationships
I want to prevent the duplicate SQL queries executed by hibernate, as my underlying relation is a complex view, (although maybe postgresql might cache the result, but still I would vastly prefer if duplicate queries were not issued).