From 432f7dca70e4198c90c56f48dad2260bec6bc396 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 19 Dec 2018 18:01:59 +0100 Subject: [PATCH] Create GSDAddressMapper.php --- Interfaces/GSD/Model/GSDAddressMapper.php | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Interfaces/GSD/Model/GSDAddressMapper.php diff --git a/Interfaces/GSD/Model/GSDAddressMapper.php b/Interfaces/GSD/Model/GSDAddressMapper.php new file mode 100644 index 0000000..ffa04d3 --- /dev/null +++ b/Interfaces/GSD/Model/GSDAddressMapper.php @@ -0,0 +1,72 @@ +> + * @since 1.0.0 + */ + protected static $columns = [ + 'AdressRowId' => ['name' => 'AdressRowId', 'type' => 'int', 'internal' => 'id'], + 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], + 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], + 'NAME1' => ['name' => 'NAME1', 'type' => 'string', 'internal' => 'name1'], + 'NAME2' => ['name' => 'NAME2', 'type' => 'string', 'internal' => 'name2'], + 'NAME3' => ['name' => 'NAME3', 'type' => 'string', 'internal' => 'name3'], + 'ORT' => ['name' => 'ORT', 'type' => 'string', 'internal' => 'city'], + 'PLZ' => ['name' => 'PLZ', 'type' => 'string', 'internal' => 'zip'], + 'STRASSE' => ['name' => 'STRASSE', 'type' => 'string', 'internal' => 'street'], + 'LAND' => ['name' => 'LAND', 'type' => 'string', 'internal' => 'country'], + 'TELEFON' => ['name' => 'TELEFON', 'type' => 'string', 'internal' => 'phone'], + ]; + + /** + * Primary table. + * + * @var string + * @since 1.0.0 + */ + protected static $table = 'KUNDENADRESSE'; + + /** + * Created at. + * + * @var string + * @since 1.0.0 + */ + protected static $createdAt = 'row_create_time'; + + /** + * Primary field name. + * + * @var string + * @since 1.0.0 + */ + protected static $primaryField = 'AdressRowId'; +}