Related discussion and workaround in the context of Hibernate Search: https://discourse.hibernate.org/t/null-embedded-id-transient-field-for-multiple-returned-entities/1520/7?u=yrodiere