From 57078313e657494dd2899aa40dd86804e146506e Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Thu, 7 Feb 2019 15:31:41 +0100 Subject: [PATCH] refactor Country entity --- entity/Countries_Entity/Countries_Entity.aod | 12 ++++++------ .../iso2_name/children/key_param/code.js | 2 ++ .../iso2_name/children/value_param/code.js | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 entity/Countries_Entity/entityfields/iso2_name/children/key_param/code.js create mode 100644 entity/Countries_Entity/entityfields/iso2_name/children/value_param/code.js diff --git a/entity/Countries_Entity/Countries_Entity.aod b/entity/Countries_Entity/Countries_Entity.aod index f54c0dd208..66a8cedded 100644 --- a/entity/Countries_Entity/Countries_Entity.aod +++ b/entity/Countries_Entity/Countries_Entity.aod @@ -31,24 +31,24 @@ </dependencies> <children> <entityParameter> - <name>key</name> - <code>%aditoprj%/entity/Countries_Entity/entityfields/iso2_name/children/key/code.js</code> + <name>Key_param</name> + <code>%aditoprj%/entity/Countries_Entity/entityfields/iso2_name/children/key_param/code.js</code> <expose v="false" /> </entityParameter> <entityParameter> - <name>value</name> - <code>%aditoprj%/entity/Countries_Entity/entityfields/iso2_name/children/value/code.js</code> + <name>Value_param</name> + <code>%aditoprj%/entity/Countries_Entity/entityfields/iso2_name/children/value_param/code.js</code> <expose v="false" /> </entityParameter> </children> </entityProvider> <entityParameter> - <name>key</name> + <name>Key_param</name> <expose v="true" /> <description>PARAMETER</description> </entityParameter> <entityParameter> - <name>value</name> + <name>Value_param</name> <expose v="true" /> <description>PARAMETER</description> </entityParameter> diff --git a/entity/Countries_Entity/entityfields/iso2_name/children/key_param/code.js b/entity/Countries_Entity/entityfields/iso2_name/children/key_param/code.js new file mode 100644 index 0000000000..ce35888708 --- /dev/null +++ b/entity/Countries_Entity/entityfields/iso2_name/children/key_param/code.js @@ -0,0 +1,2 @@ +import("system.result"); +result.string("ISO2"); \ No newline at end of file diff --git a/entity/Countries_Entity/entityfields/iso2_name/children/value_param/code.js b/entity/Countries_Entity/entityfields/iso2_name/children/value_param/code.js new file mode 100644 index 0000000000..02118b5079 --- /dev/null +++ b/entity/Countries_Entity/entityfields/iso2_name/children/value_param/code.js @@ -0,0 +1,2 @@ +import("system.result"); +result.string("NAME"); \ No newline at end of file -- GitLab