-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata-config.xml.in
27 lines (27 loc) · 1.27 KB
/
data-config.xml.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<dataConfig>
<dataSource type="JdbcDataSource"
driver="org.postgresql.Driver"
url="jdbc:postgresql://${parts.settings['jdbc_url']}"
user="${parts.settings['jdbc_user']}"
password="${parts.settings['jdbc_password']}"/>
<document>
<entity name="timeentry"
query="select concat('timeentry:',id) as doc_id,'TimeEntry' as realm, time_entries.* from time_entries"
deltaImportQuery="select concat('timeentry:',id) as doc_id, 'TimeEntry' as realm, time_entries.* from time_entries where id='$${dih.delta.id}'"
deltaQuery="select id from time_entries where modification_date > '$${dih.last_index_time}'">
<field column="id" name="doc_id"/>
<field column="project_id" name="project"/>
<field column="realm" name="realm"/>
<field column="id" name="id"/>
<field column="description" name="title"/>
<field column="customer_request_id" name="tags"/>
<field column="author_id" name="involved"/>
<entity name="user"
query="select email from users where id ='$${timeentry.author_id}'">
<field column="email" name="author"/>
</entity>
<field column="description" name="body"/>
<field column="description" name="oneline"/>
</entity>
</document>
</dataConfig>