-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change identificatie column type to char(4) (#1435)
* WIP add integration test for loading woonplaats stand and mutatie * Rework, add Oracle support * Change identificatie column type of Woonplaats to char(4) because Oracle requires queries with space padded values, fixes SUPPORT-13151 * Catch table does not exist error
- Loading branch information
1 parent
f962d86
commit 9de9939
Showing
10 changed files
with
503 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
bag2-loader/src/test/java/nl/b3p/brmo/bag2/loader/SkipDropTables.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (C) 2021 B3Partners B.V. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
*/ | ||
|
||
package nl.b3p.brmo.bag2.loader; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD }) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface SkipDropTables { | ||
} |
Git LFS file not shown
Git LFS file not shown
93 changes: 93 additions & 0 deletions
93
bag2-loader/src/test/resources/expected/bag2-woonplaats-gemuteerd-oracle.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<dataset> | ||
<table name="WOONPLAATS"> | ||
<column>OBJECTID</column> | ||
<column>IDENTIFICATIE</column> | ||
<column>VOORKOMENIDENTIFICATIE</column> | ||
<column>BEGINGELDIGHEID</column> | ||
<column>EINDGELDIGHEID</column> | ||
<column>TIJDSTIPREGISTRATIE</column> | ||
<column>EINDREGISTRATIE</column> | ||
<column>TIJDSTIPINACTIEF</column> | ||
<column>TIJDSTIPREGISTRATIELV</column> | ||
<column>TIJDSTIPEINDREGISTRATIELV</column> | ||
<column>TIJDSTIPINACTIEFLV</column> | ||
<column>DOCUMENTDATUM</column> | ||
<column>DOCUMENTNUMMER</column> | ||
<column>GECONSTATEERD</column> | ||
<column>STATUS</column> | ||
<column>NAAM</column> | ||
<row> | ||
<value>1</value> | ||
<value>3502</value> | ||
<value>1</value> | ||
<value><![CDATA[2010-09-21 00:00:00.0]]></value> | ||
<value><![CDATA[2011-09-01 00:00:00.0]]></value> | ||
<value><![CDATA[2010-12-31 11:25:43.0]]></value> | ||
<value><![CDATA[2011-09-08 12:20:45.0]]></value> | ||
<null/> | ||
<value><![CDATA[2010-12-31 11:33:38.0]]></value> | ||
<value><![CDATA[2011-09-08 12:31:38.0]]></value> | ||
<null/> | ||
<value><![CDATA[2010-09-21 00:00:00.0]]></value> | ||
<value>AVGpvdb02</value> | ||
<value>0</value> | ||
<value><![CDATA[Woonplaats aangewezen]]></value> | ||
<value>NIEUWKUIJK</value> | ||
</row> | ||
<row> | ||
<value>2</value> | ||
<value>3502</value> | ||
<value>2</value> | ||
<value><![CDATA[2011-09-01 00:00:00.0]]></value> | ||
<value><![CDATA[2011-10-05 00:00:00.0]]></value> | ||
<value><![CDATA[2011-09-08 12:20:45.0]]></value> | ||
<value><![CDATA[2011-10-05 12:47:19.0]]></value> | ||
<null/> | ||
<value><![CDATA[2011-09-08 12:31:38.0]]></value> | ||
<value><![CDATA[2011-10-05 13:01:44.0]]></value> | ||
<null/> | ||
<value><![CDATA[2011-09-01 00:00:00.0]]></value> | ||
<value>AVGEL01092011-04</value> | ||
<value>0</value> | ||
<value><![CDATA[Woonplaats aangewezen]]></value> | ||
<value>Nieuwkuijk</value> | ||
</row> | ||
<row> | ||
<value>4</value> | ||
<value>3502</value> | ||
<value>3</value> | ||
<value><![CDATA[2011-10-05 00:00:00.0]]></value> | ||
<value><![CDATA[2022-05-23 00:00:00.0]]></value> | ||
<value><![CDATA[2011-10-05 12:47:19.0]]></value> | ||
<value><![CDATA[2022-05-23 09:53:06.0]]></value> | ||
<null/> | ||
<value><![CDATA[2011-10-05 13:01:44.0]]></value> | ||
<value><![CDATA[2022-05-23 09:53:21.0]]></value> | ||
<null/> | ||
<value><![CDATA[2011-10-05 00:00:00.0]]></value> | ||
<value>AVGSK05102011-01</value> | ||
<value>0</value> | ||
<value><![CDATA[Woonplaats aangewezen]]></value> | ||
<value>Nieuwkuijk</value> | ||
</row> | ||
<row> | ||
<value>5</value> | ||
<value>3502</value> | ||
<value>4</value> | ||
<value><![CDATA[2022-05-23 00:00:00.0]]></value> | ||
<null/> | ||
<value><![CDATA[2022-05-23 09:53:06.0]]></value> | ||
<null/> | ||
<null/> | ||
<value><![CDATA[2022-05-23 09:53:21.0]]></value> | ||
<null/> | ||
<null/> | ||
<value><![CDATA[2022-05-23 00:00:00.0]]></value> | ||
<value>2068944</value> | ||
<value>0</value> | ||
<value><![CDATA[Woonplaats aangewezen]]></value> | ||
<value>Nieuwkuijk</value> | ||
</row> | ||
</table> | ||
</dataset> |
Oops, something went wrong.