perf[orm]: entity empty judgement

This commit is contained in:
godotg
2024-05-23 10:45:19 +08:00
parent ab3ca0e17a
commit 3b9cd7b47a
@@ -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());
}
}