mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-12 17:02:23 +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.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import org.openmetadata.common.utils.CommonUtil;
|
||||||
import org.openmetadata.schema.entity.type.Style;
|
import org.openmetadata.schema.entity.type.Style;
|
||||||
import org.openmetadata.schema.type.*;
|
import org.openmetadata.schema.type.*;
|
||||||
import org.openmetadata.schema.utils.EntityInterfaceUtil;
|
import org.openmetadata.schema.utils.EntityInterfaceUtil;
|
||||||
@ -189,7 +190,7 @@ public interface EntityInterface {
|
|||||||
? EntityInterfaceUtil.quoteName(getName())
|
? EntityInterfaceUtil.quoteName(getName())
|
||||||
: getFullyQualifiedName())
|
: getFullyQualifiedName())
|
||||||
.withDescription(getDescription())
|
.withDescription(getDescription())
|
||||||
.withDisplayName(getDisplayName())
|
.withDisplayName(CommonUtil.nullOrEmpty(getDisplayName()) ? getName() : getDisplayName())
|
||||||
.withType(
|
.withType(
|
||||||
CANONICAL_ENTITY_NAME_MAP.get(this.getClass().getSimpleName().toLowerCase(Locale.ROOT)))
|
CANONICAL_ENTITY_NAME_MAP.get(this.getClass().getSimpleName().toLowerCase(Locale.ROOT)))
|
||||||
.withDeleted(getDeleted())
|
.withDeleted(getDeleted())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user