File tree 4 files changed +36
-2
lines changed
java/com/nhl/link/move/itest
4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public class CreateOrUpdateDbIT extends LmIntegrationTest {
18
18
@ Test
19
19
public void test_ByAttribute () {
20
20
21
- LmTask task = etl .service (ITaskService .class ).createOrUpdate ("etl1t " )
22
- .sourceExtractor ("com/nhl/link/move/itest/etl1_to_etl1t " ).matchBy ("name" ).task ();
21
+ LmTask task = etl .service (ITaskService .class ).createOrUpdate ("etl11t " )
22
+ .sourceExtractor ("com/nhl/link/move/itest/etl11_to_etl11t " ).matchBy ("name" ).task ();
23
23
24
24
srcRunSql ("INSERT INTO utest.etl1 (NAME, AGE) VALUES ('a', 3)" );
25
25
srcRunSql ("INSERT INTO utest.etl1 (NAME, AGE) VALUES ('b', NULL)" );
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://linkmove.io/xsd/extractor_config_2.xsd"
3
+ xmlns=" http://linkmove.io/xsd/extractor_config_2.xsd" >
4
+ <type >jdbc</type >
5
+ <connectorId >derbysrc</connectorId >
6
+ <extractor >
7
+ <attributes >
8
+ <attribute >
9
+ <type >java.lang.Integer</type >
10
+ <source >ID</source >
11
+ <target >db:id</target >
12
+ </attribute >
13
+ <attribute >
14
+ <type >java.lang.String</type >
15
+ <source >NAME</source >
16
+ <target >name</target >
17
+ </attribute >
18
+ </attributes >
19
+ <properties >
20
+ <extractor .jdbc.sqltemplate>
21
+ <![CDATA[ SELECT id, name FROM utest.etl9
22
+ ]]>
23
+ </extractor .jdbc.sqltemplate>
24
+ </properties >
25
+ </extractor >
26
+ </config >
Original file line number Diff line number Diff line change 64
64
<db-attribute name =" id" type =" INTEGER" isPrimaryKey =" true" isMandatory =" true" />
65
65
<db-attribute name =" name" type =" VARCHAR" length =" 100" />
66
66
</db-entity >
67
+ <db-entity name =" etl11t" schema =" utest" >
68
+ <db-attribute name =" id" type =" INTEGER" isPrimaryKey =" true" isMandatory =" true" />
69
+ <db-attribute name =" name" type =" VARCHAR" length =" 100" />
70
+ </db-entity >
67
71
<obj-entity name =" Etl10t" className =" com.nhl.link.move.unit.cayenne.t.Etl10t" dbEntityName =" etl10t" >
68
72
<obj-attribute name =" name" type =" java.lang.String" db-attribute-path =" name" />
69
73
</obj-entity >
Original file line number Diff line number Diff line change 58
58
<db-attribute name =" id" type =" INTEGER" isPrimaryKey =" true" isMandatory =" true" />
59
59
<db-attribute name =" name" type =" VARCHAR" length =" 100" />
60
60
</db-entity >
61
+ <db-entity name =" etl11" schema =" utest" >
62
+ <db-attribute name =" id" type =" INTEGER" isPrimaryKey =" true" isMandatory =" true" />
63
+ <db-attribute name =" name" type =" VARCHAR" length =" 100" />
64
+ </db-entity >
61
65
<db-relationship name =" e3s" source =" etl2" target =" etl3" toMany =" true" >
62
66
<db-attribute-pair source =" id" target =" e2_id" />
63
67
</db-relationship >
You can’t perform that action at this time.
0 commit comments