1 |
d2a8c3fd
|
Marc NICOLAS
|
<dataConfig>
|
2 |
|
|
<dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" />
|
3 |
|
|
<document>
|
4 |
|
|
<entity name="item" query="select * from item"
|
5 |
|
|
deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
|
6 |
|
|
<field column="NAME" name="name" />
|
7 |
|
|
<field column="NAME" name="nameSort" />
|
8 |
|
|
<field column="NAME" name="alphaNameSort" />
|
9 |
|
|
|
10 |
|
|
<entity name="feature"
|
11 |
|
|
query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'"
|
12 |
|
|
deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'"
|
13 |
|
|
parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}">
|
14 |
|
|
<field name="features" column="DESCRIPTION" />
|
15 |
|
|
</entity>
|
16 |
|
|
|
17 |
|
|
<entity name="item_category"
|
18 |
|
|
query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'"
|
19 |
|
|
deltaQuery="select ITEM_ID, CATEGORY_ID from item_category where last_modified > '${dataimporter.last_index_time}'"
|
20 |
|
|
parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}">
|
21 |
|
|
<entity name="category"
|
22 |
|
|
query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'"
|
23 |
|
|
deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'"
|
24 |
|
|
parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}">
|
25 |
|
|
<field column="description" name="cat" />
|
26 |
|
|
</entity>
|
27 |
|
|
</entity>
|
28 |
|
|
</entity>
|
29 |
|
|
</document>
|
30 |
|
|
</dataConfig>
|
31 |
|
|
|