The slight inconvenience is that Session#load means IdentifierLoadAccess#getReference (i.e get a proxy possibly) whereas Session#get means IdentifierLoadAccess#load (i.e get the object). But aside from that naming inconvenience, I would align the behavior of multiLoad with IdentifierLoadAccess#load's behavior of not returning the deleted entity. Do we need a method for both? Sanne Grinovero might have the use case better in mind, I don't see a good one. If we do, I'd vote for a separate method getReferences. |