perf[orm]: entity empty judgement

This commit is contained in:
godotg committed 2024-05-23 10:45:19 +08:00
1 parent ab3ca0e17a
commit 3b9cd7b47a
1 file changed
+1 -1
@@ -60,7 +60,7 @@ public interface IEntity<PK extends Comparable<PK>> {
if (idValue instanceof Number) {
return ((Number) idValue).doubleValue() == 0D;
} else {
return StringUtils.isEmpty((CharSequence) idValue);
return StringUtils.isEmpty(idValue.toString());
}
}