Marc
05/04/2024, 9:52 AMChantal Loncle
05/06/2024, 2:54 AMReference setter, you can use its id to try and retrieve the entity from the cache first.
EntityClass.findById(id: ID): T? searches the cache first then runs a search query if the entity was not found there.
EntityClass[id] does the same except it throws an EntityNotFoundException instead of returning null.
While EntityClass.testCache(id: EntityID<ID>): T? will only search the cache.