Can't say I am a huge fan of this. Supporting models that define attributes as Optional.. ok. But this feels unnecessary. Really its a glorified form of Optional<Event> result = Optional.ofNullable( session.get( Event.class, id ) ); I'll wait for any more feedback and votes. |