Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Aug 20, 2024
2 parents 1277ab0 + 6331c66 commit 4f369e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions orm/src/main/java/com/zfoo/orm/cache/IEntityCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public interface IEntityCache<PK extends Comparable<PK>, E extends IEntity<PK>>

/**
* EN: Load data from the database to the cache and return a default value with an empty ID if the database does not exist.
* This can use the entity.empty() method to determine if the id is empty
* <p>
* CN: 从数据库中加载数据到缓存,如果数据库不存在则返回一个id为空的默认值。可以通过 entity.empty() 方法判断id是否为空
* CN: 从数据库中加载数据到缓存,如果数据库不存在则返回一个id为空的默认值。
*/
@Nullable
E load(PK pk);
Expand Down

0 comments on commit 4f369e1

Please sign in to comment.