From fcfe65f8cb38adc1c24536e36f9cbfc380f0dd95 Mon Sep 17 00:00:00 2001 From: godotg Date: Tue, 19 Mar 2024 17:38:10 +0800 Subject: [PATCH] chore[doc]: update doc --- orm/src/main/java/com/zfoo/orm/cache/IEntityCache.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orm/src/main/java/com/zfoo/orm/cache/IEntityCache.java b/orm/src/main/java/com/zfoo/orm/cache/IEntityCache.java index fa872cfff..b1fff5cbf 100644 --- a/orm/src/main/java/com/zfoo/orm/cache/IEntityCache.java +++ b/orm/src/main/java/com/zfoo/orm/cache/IEntityCache.java @@ -13,6 +13,7 @@ package com.zfoo.orm.cache; import com.zfoo.orm.model.IEntity; +import org.springframework.lang.NonNull; import java.util.List; import java.util.function.BiConsumer; @@ -23,8 +24,10 @@ public interface IEntityCache, E extends IEntity> { /** - * 从数据库中加载数据到缓存,如果数据库不存在则返回一个id为空的默认值,并且将这个默认值加入缓存 + * EN: Load data from the database to the cache and return a default value with an empty ID if the database does not exist + * CN: 从数据库中加载数据到缓存,如果数据库不存在则返回一个id为空的默认值 */ + @NonNull E load(PK pk); /**