Consider taking advantage of the new {code}List<User> users = session.byMultipleIds(User.class) .multiLoad( 1, 2, 3 );{code}
See also https://hibernate.atlassian.net/browse/HHH-7572
Other than maintainability, do we have any other benefit on changing the current proven strategies? The drawback is that this would require Hibernate ORM 5.1.0 |
|