Advertisement
Guest User

Untitled

a guest
Mar 29th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.85 KB | None | 0 0
  1. <dataConfig>
  2.     <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://path" user="user" password="pwd" />
  3.     <document name="offers">
  4.        <entity name="offers"
  5.                  query="SELECT o.* FROM offers o inner join offer_group g on o.offer_group_id = g.id where g.status = 0"
  6.                  deltaQuery="select id from offers where updated_at > '${dataimporter.last_index_time}'">
  7.  
  8.           <field column="id" name="id" />
  9.           <field column="product_code" name="product_code" />
  10.           <field column="gender" name="gender" />
  11.           <field column="colors" name="colors" />
  12.           <field column="year" name="year" />
  13.           <field column="tags" name="tags" />
  14.           <field column="size" name="size" />
  15.           <field column="size_typology" name="size_typology" />
  16.           <field column="season" name="season" />
  17.           <field column="quantity" name="quantity" />
  18.           <field column="price" name="price" />
  19.           <field column="typology" name="typology" />
  20.           <field column="model" name="model" />
  21.  
  22.           <entity name="brands"
  23.                    query="select name from brands where id='${offers.brand_id}'"
  24.                    deltaQuery="select id from brands where updated_at > '${dataimporter.last_index_time}'" >
  25.                <field name="brand_name" column="name" />
  26.           </entity>
  27.  
  28.           <entity name="materials"
  29.                     query="select name from materials where id='${offers.type_material}' OR '${offers.type_material}' = NULL">
  30.                 <field name="material_name" column="name" />
  31.           </entity>
  32.  
  33.           <entity name="offer_group"
  34.                    query="select shop_id from offer_group where id='${offers.offer_group_id}'"
  35.                    deltaQuery="select id from offer_group where updated_at > '${dataimporter.last_index_time}'" >
  36.                <field name="shop_id" column="shop_id" />
  37.           </entity>
  38.  
  39.        </entity>
  40.     </document>
  41. </dataConfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement