mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-08 23:14:00 +00:00
parent
777b08ef13
commit
f4e3335ad1
@ -72,6 +72,10 @@ public class TypeRepository extends EntityRepository<Type> {
|
|||||||
updateTypeMap(type);
|
updateTypeMap(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addToRegistry(Type type) {
|
||||||
|
updateTypeMap(type);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void storeRelationships(Type type) {
|
public void storeRelationships(Type type) {
|
||||||
// Nothing to do
|
// Nothing to do
|
||||||
|
|||||||
@ -114,6 +114,7 @@ public class TypeResource extends EntityResource<Type, TypeRepository> {
|
|||||||
LOG.debug("Creating entity that does not exist ", e);
|
LOG.debug("Creating entity that does not exist ", e);
|
||||||
}
|
}
|
||||||
this.dao.createOrUpdate(null, type);
|
this.dao.createOrUpdate(null, type);
|
||||||
|
this.dao.addToRegistry(type);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.error("Error loading type {}", type.getName(), e);
|
LOG.error("Error loading type {}", type.getName(), e);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user