mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 19:48:17 +00:00
- Fix displayName (#16059)
This commit is contained in:
parent
e6a2ec147e
commit
33f1e4f4f0
@ -20,6 +20,7 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import org.openmetadata.common.utils.CommonUtil;
|
||||
import org.openmetadata.schema.entity.type.Style;
|
||||
import org.openmetadata.schema.type.*;
|
||||
import org.openmetadata.schema.utils.EntityInterfaceUtil;
|
||||
@ -189,7 +190,7 @@ public interface EntityInterface {
|
||||
? EntityInterfaceUtil.quoteName(getName())
|
||||
: getFullyQualifiedName())
|
||||
.withDescription(getDescription())
|
||||
.withDisplayName(getDisplayName())
|
||||
.withDisplayName(CommonUtil.nullOrEmpty(getDisplayName()) ? getName() : getDisplayName())
|
||||
.withType(
|
||||
CANONICAL_ENTITY_NAME_MAP.get(this.getClass().getSimpleName().toLowerCase(Locale.ROOT)))
|
||||
.withDeleted(getDeleted())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user