Find an entity by its id, optionally throwing an exception if not found
(this prevents NullPointerExceptions from occurring later),
and optionally locking the found entity.
Find an entity by its id, optionally throwing an exception if not found
(this prevents NullPointerExceptions from occurring later),
and optionally locking the found entity.