-
Notifications
You must be signed in to change notification settings - Fork 23
/
dynamodb.html
274 lines (237 loc) · 25.4 KB
/
dynamodb.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"-->
<link rel="stylesheet" href="/gfx/bootstrap.min.css">
<link rel="stylesheet" href="/gfx/main.css">
<link rel="stylesheet" href="/gfx/code.css">
<title>DynamoDB integration</title>
</head>
<body class="page">
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PMJSKV"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PMJSKV');</script>
<!-- End Google Tag Manager -->
<header>
<div class="container">
<a href="/">Immutables</a> ←
<h1>DynamoDB integration <iframe src="https://ghbtns.com/github-btn.html?user=immutables&repo=immutables&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
</h1>
</div>
</header>
<aside id="toc"></aside>
<section class="documentation">
<h2 id="overview">Overview</h2>
<p>The <a href="https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/dynamodb-enhanced-client.html">DynamoDB Enhanced Client</a>, part of the AWS V2 SDK, offers a straightforward way to map client-side classes to DynamoDB tables and perform CRUD operations.</p>
<h2 id="style-for-immutable-table-mapping-classes">Style for Immutable Table Mapping Classes</h2>
<p>For example, instances of a <code class="language-plaintext highlighter-rouge">Customer</code> class can map to a row in a <code class="language-plaintext highlighter-rouge">customers</code> DynamoDB table.</p>
<p>The enhanced client <a href="https://github.com/aws/aws-sdk-java-v2/tree/master/services-custom/dynamodb-enhanced#working-with-immutable-data-classes">supports mappings for immutable classes</a>, which is possible with the following annotations (starting in immutables version 2.10):</p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbImmutable</span><span class="o">;</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span>
<span class="nd">@DynamoDbImmutable</span><span class="o">(</span><span class="n">builder</span> <span class="o">=</span> <span class="nc">ImmutableCustomer</span><span class="o">.</span><span class="na">Builder</span><span class="o">.</span><span class="na">class</span><span class="o">)</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Style</span><span class="o">(</span>
<span class="n">from</span> <span class="o">=</span> <span class="s">""</span><span class="o">,</span> <span class="c1">// Omit the from(*) methods so that they aren't interpreted as table attributes</span>
<span class="n">defaults</span> <span class="o">=</span> <span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span><span class="o">(</span><span class="n">copy</span> <span class="o">=</span> <span class="kc">false</span><span class="o">),</span> <span class="c1">// Omit the copy(*) methods so that they aren't interpreted as table attribute</span>
<span class="n">builtinContainerAttributes</span> <span class="o">=</span> <span class="kc">false</span><span class="o">,</span> <span class="c1">// Omit the add(*) methods so that they aren't interpreted as table attributes</span>
<span class="n">passAnnotations</span> <span class="o">=</span> <span class="o">{</span>
<span class="c1">// Copy all Enhanced Client annotations to the immutable class</span>
<span class="nc">DynamoDbImmutable</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbConvertedBy</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbFlatten</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbIgnore</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbIgnoreNulls</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbPartitionKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbPreserveEmptyObject</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSecondaryPartitionKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSecondarySortKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSortKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbUpdateBehavior</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAtomicCounter</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAutoGeneratedTimestampAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbVersionAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="o">}</span>
<span class="o">)</span>
<span class="kd">public</span> <span class="kd">interface</span> <span class="nc">Customer</span> <span class="o">{</span>
<span class="c1">// Partition key attribute named "customerId"</span>
<span class="nd">@DynamoDbPartitionKey</span>
<span class="nc">String</span> <span class="nf">getCustomerId</span><span class="o">();</span>
<span class="c1">//Sort key attribute named "email"</span>
<span class="nd">@DynamoDbSortKey</span>
<span class="nc">String</span> <span class="nf">getEmail</span><span class="o">();</span>
<span class="c1">//"name" attribute</span>
<span class="nc">String</span> <span class="nf">getName</span><span class="o">();</span>
<span class="c1">//An optional "occupation" attribute. The @Nullable annotation is used because the Enhanced Client does not support java.util.Optional</span>
<span class="nd">@Nullable</span>
<span class="nc">String</span> <span class="nf">getOccupation</span><span class="o">();</span>
<span class="o">}</span>
</code></pre></div></div>
<p>Then to persist the item:</p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">DynamoDbEnhancedClient</span> <span class="n">client</span> <span class="o">=</span> <span class="o">...</span>
<span class="c1">//Initialize the schema and table mapping</span>
<span class="nc">TableSchema</span><span class="o"><</span><span class="nc">ImmutableCustomer</span><span class="o">></span> <span class="n">customerSchema</span> <span class="o">=</span> <span class="nc">TableSchema</span><span class="o">.</span><span class="na">fromImmutableClass</span><span class="o">(</span><span class="nc">ImmutableCustomer</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
<span class="nc">DynamoDbTable</span><span class="o"><</span><span class="nc">ImmutableCustomer</span><span class="o">></span> <span class="n">customerTable</span> <span class="o">=</span> <span class="n">client</span><span class="o">.</span><span class="na">table</span><span class="o">(</span><span class="s">"customers"</span><span class="o">,</span> <span class="n">customerSchema</span><span class="o">);</span>
<span class="c1">// Build and persist the customer</span>
<span class="nc">ImmutableCustomer</span> <span class="n">customer</span> <span class="o">=</span> <span class="nc">ImmutableCustomer</span><span class="o">.</span><span class="na">builder</span><span class="o">()</span>
<span class="o">.</span><span class="na">customerId</span><span class="o">(</span><span class="s">"customer123"</span><span class="o">)</span>
<span class="o">.</span><span class="na">email</span><span class="o">(</span><span class="s">"[email protected]"</span><span class="o">)</span>
<span class="o">.</span><span class="na">name</span><span class="o">(</span><span class="s">"John"</span><span class="o">)</span>
<span class="o">.</span><span class="na">build</span><span class="o">();</span>
<span class="n">customerTable</span><span class="o">.</span><span class="na">putItem</span><span class="o">(</span><span class="n">customer</span><span class="o">);</span>
<span class="c1">// Retrieve the customer</span>
<span class="nc">Key</span> <span class="n">lookupKey</span> <span class="o">=</span> <span class="nc">Key</span><span class="o">.</span><span class="na">builder</span><span class="o">().</span><span class="na">partitionValue</span><span class="o">(</span><span class="s">"customer123"</span><span class="o">).</span><span class="na">sortValue</span><span class="o">(</span><span class="s">"[email protected]"</span><span class="o">).</span><span class="na">build</span><span class="o">();</span>
<span class="nc">ImmutableCustomer</span> <span class="n">retrievedCustomer</span> <span class="o">=</span> <span class="n">customerTable</span><span class="o">.</span><span class="na">getItem</span><span class="o">(</span><span class="n">lookupKey</span><span class="o">);</span>
</code></pre></div></div>
<h2 id="immutable-partial-updates">Immutable Partial Updates</h2>
<p>When updating an item, the Enhanced Client’s interface takes an instance of the table mapping class as input, but allows you to set attribute values to <code class="language-plaintext highlighter-rouge">null</code> to indicate they shouldn’t be modified. For example, you may want to atomically increment a counter attribute without overwriting other attributes with potentially stale values.</p>
<p>Ideally partial updates are possible without making all attributes optional in the table mapping class. This is possible by extending the mapping class and disabling immutables validation of required fields:</p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span>
<span class="nd">@SuppressWarnings</span><span class="o">(</span><span class="s">"immutables:subtype"</span><span class="o">)</span>
<span class="nd">@DynamoDbImmutable</span><span class="o">(</span><span class="n">builder</span> <span class="o">=</span> <span class="nc">ImmutablePartialCustomer</span><span class="o">.</span><span class="na">Builder</span><span class="o">.</span><span class="na">class</span><span class="o">)</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Style</span><span class="o">(</span>
<span class="c1">// Disable required field validation</span>
<span class="n">validationMethod</span> <span class="o">=</span> <span class="nc">ValidationMethod</span><span class="o">.</span><span class="na">NONE</span><span class="o">,</span>
<span class="n">from</span> <span class="o">=</span> <span class="s">""</span><span class="o">,</span>
<span class="n">builtinContainerAttributes</span> <span class="o">=</span> <span class="kc">false</span><span class="o">,</span>
<span class="n">defaults</span> <span class="o">=</span> <span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span><span class="o">(</span><span class="n">copy</span> <span class="o">=</span> <span class="kc">false</span><span class="o">),</span>
<span class="n">passAnnotations</span> <span class="o">=</span> <span class="o">{</span>
<span class="c1">// Same annotations as in Customer</span>
<span class="o">}</span>
<span class="o">)</span>
<span class="kd">public</span> <span class="kd">interface</span> <span class="nc">PartialCustomer</span> <span class="kd">extends</span> <span class="nc">Customer</span> <span class="o">{</span>
<span class="o">}</span>
</code></pre></div></div>
<p>And then to make a partial update:</p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// Initialize the schema and table mappings for the partial class items. The same "customers" table is used as the non-partial mapping.</span>
<span class="nc">TableSchema</span><span class="o"><</span><span class="nc">ImmutablePartialCustomer</span><span class="o">></span> <span class="n">partialCustomerSchema</span> <span class="o">=</span> <span class="nc">TableSchema</span><span class="o">.</span><span class="na">fromImmutableClass</span><span class="o">(</span><span class="nc">ImmutablePartialCustomer</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
<span class="nc">DynamoDbTable</span><span class="o"><</span><span class="nc">ImmutablePartialCustomer</span><span class="o">></span> <span class="n">partialCustomerTable</span> <span class="o">=</span> <span class="n">client</span><span class="o">.</span><span class="na">table</span><span class="o">(</span><span class="s">"customers"</span><span class="o">,</span> <span class="n">partialCustomerSchema</span><span class="o">);</span>
<span class="c1">// Update just the occupation attribute, not the required "name" attribute</span>
<span class="nc">ImmutablePartialCustomer</span> <span class="n">partialUpdate</span> <span class="o">=</span> <span class="nc">ImmutablePartialCustomer</span><span class="o">.</span><span class="na">builder</span><span class="o">()</span>
<span class="o">.</span><span class="na">customerId</span><span class="o">(</span><span class="s">"customer123"</span><span class="o">)</span>
<span class="o">.</span><span class="na">email</span><span class="o">(</span><span class="s">"[email protected]"</span><span class="o">)</span>
<span class="o">.</span><span class="na">occupation</span><span class="o">(</span><span class="s">"software developer"</span><span class="o">)</span>
<span class="o">.</span><span class="na">build</span><span class="o">();</span>
<span class="c1">// ignoreNulls(true) only updates non-null attributes</span>
<span class="n">partialCustomerTable</span><span class="o">.</span><span class="na">updateItem</span><span class="o">(</span><span class="n">request</span> <span class="o">-></span> <span class="n">request</span><span class="o">.</span><span class="na">ignoreNulls</span><span class="o">(</span><span class="kc">true</span><span class="o">).</span><span class="na">item</span><span class="o">(</span><span class="n">partialUpdate</span><span class="o">));</span>
</code></pre></div></div>
<h2 id="code-re-use">Code re-use</h2>
<p>Custom annotations can be created to re-use the above styles across tables:</p>
<div class="language-java highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nd">@Target</span><span class="o">(</span><span class="nc">ElementType</span><span class="o">.</span><span class="na">TYPE</span><span class="o">)</span>
<span class="nd">@Retention</span><span class="o">(</span><span class="nc">RetentionPolicy</span><span class="o">.</span><span class="na">CLASS</span><span class="o">)</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Style</span><span class="o">(</span>
<span class="n">from</span> <span class="o">=</span> <span class="s">""</span><span class="o">,</span>
<span class="n">builtinContainerAttributes</span> <span class="o">=</span> <span class="kc">false</span><span class="o">,</span>
<span class="n">defaults</span> <span class="o">=</span> <span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span><span class="o">(</span><span class="n">copy</span> <span class="o">=</span> <span class="kc">false</span><span class="o">),</span>
<span class="n">passAnnotations</span> <span class="o">=</span> <span class="o">{</span>
<span class="nc">DynamoDbImmutable</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbConvertedBy</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbFlatten</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbIgnore</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbIgnoreNulls</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbPartitionKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbPreserveEmptyObject</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSecondaryPartitionKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSecondarySortKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSortKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbUpdateBehavior</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAtomicCounter</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAutoGeneratedTimestampAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbVersionAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="o">}</span>
<span class="o">)</span>
<span class="kd">public</span> <span class="nd">@interface</span> <span class="nc">ImmutablesDynamoDBStyle</span> <span class="o">{}</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span>
<span class="nd">@ImmutablesDynamoDBStyle</span>
<span class="nd">@DynamoDbImmutable</span><span class="o">(</span><span class="n">builder</span> <span class="o">=</span> <span class="nc">ImmutableCustomer</span><span class="o">.</span><span class="na">Builder</span><span class="o">.</span><span class="na">class</span><span class="o">)</span>
<span class="kd">public</span> <span class="kd">interface</span> <span class="nc">Customer</span> <span class="o">{</span> <span class="o">...</span> <span class="o">}</span>
<span class="nd">@Target</span><span class="o">(</span><span class="nc">ElementType</span><span class="o">.</span><span class="na">TYPE</span><span class="o">)</span>
<span class="nd">@Retention</span><span class="o">(</span><span class="nc">RetentionPolicy</span><span class="o">.</span><span class="na">CLASS</span><span class="o">)</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Style</span><span class="o">(</span>
<span class="n">validationMethod</span> <span class="o">=</span> <span class="nc">ValidationMethod</span><span class="o">.</span><span class="na">NONE</span><span class="o">,</span>
<span class="n">from</span> <span class="o">=</span> <span class="s">""</span><span class="o">,</span>
<span class="n">builtinContainerAttributes</span> <span class="o">=</span> <span class="kc">false</span><span class="o">,</span>
<span class="n">defaults</span> <span class="o">=</span> <span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span><span class="o">(</span><span class="n">copy</span> <span class="o">=</span> <span class="kc">false</span><span class="o">),</span>
<span class="n">passAnnotations</span> <span class="o">=</span> <span class="o">{</span>
<span class="nc">DynamoDbImmutable</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbConvertedBy</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbFlatten</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbIgnore</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbIgnoreNulls</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbPartitionKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbPreserveEmptyObject</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSecondaryPartitionKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSecondarySortKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbSortKey</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbUpdateBehavior</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAtomicCounter</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbAutoGeneratedTimestampAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="nc">DynamoDbVersionAttribute</span><span class="o">.</span><span class="na">class</span><span class="o">,</span>
<span class="o">}</span>
<span class="o">)</span>
<span class="kd">public</span> <span class="nd">@interface</span> <span class="nc">ImmutablesDynamoDBPartialStyle</span> <span class="o">{}</span>
<span class="nd">@Value</span><span class="o">.</span><span class="na">Immutable</span>
<span class="nd">@ImmutablesDynamoDBPartialStyle</span>
<span class="nd">@SuppressWarnings</span><span class="o">(</span><span class="s">"immutables:subtype"</span><span class="o">)</span>
<span class="nd">@DynamoDbImmutable</span><span class="o">(</span><span class="n">builder</span> <span class="o">=</span> <span class="nc">ImmutablePartialCustomer</span><span class="o">.</span><span class="na">Builder</span><span class="o">.</span><span class="na">class</span><span class="o">)</span>
<span class="kd">public</span> <span class="kd">interface</span> <span class="nc">PartialCustomer</span> <span class="kd">extends</span> <span class="nc">Customer</span> <span class="o">{</span> <span class="o">}</span>
</code></pre></div></div>
<h2 id="legacy-aws-v1-sdk-guide">Legacy AWS V1 SDK Guide</h2>
<p>A guide for V1 of the SDK using <code class="language-plaintext highlighter-rouge">DynamoDbMapper</code> can be found <a href="/dynamodb-v1-sdk.html">here</a></p>
</section>
<footer class="jumbotron">
<div class="container">
<h2 id="guides">Guides</h2>
<ul>
<li><a href="/getstarted.html">Get started!</a></li>
<li><a href="/intro.html">Inception</a></li>
<li><a href="/immutable.html">Immutable objects</a></li>
<li><a href="/factory.html">Factory builders</a></li>
<li><a href="/functional.html">Functions and Predicates (for Java 7)</a></li>
<li><a href="/style.html">Style customization</a></li>
<li><a href="/json.html">JSON serialization</a></li>
<li><a href="/criteria.html">Criteria</a></li>
<li><a href="/mongo.html">MongoDB repositories</a></li>
<li><a href="/dynamodb.html">DynamoDB integration</a></li>
<li><a href="/encoding.html">Encoding: Customizing attributes and builders (experimental)</a></li>
<li><a href="/apt.html">Using annotation processor in IDE</a></li>
</ul>
<h2 id="get-involved">Get involved</h2>
<ul>
<li>Clone source repository, contribute bug reports and fixes on <a href="https://github.com/immutables/immutables">GitHub immutables/immutables</a></li>
<li>Issue reports, questions and feedback is welcome on issue tracker <a href="https://github.com/immutables/immutables/issues">GitHub immutables/immutables/issues</a></li>
<li>News and announcements on twitter <a href="https://twitter.com/ImmutablesOrg">@ImmutablesOrg</a></li>
</ul>
<p><a href="/license.html">Apache License 2.0</a></p>
<!--<div><h2>Posts</h2>
<ul>
</ul>
</div>-->
</div>
</footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script defer src="/gfx/jquery.toc.min.js"></script>
<script>
$(function() {
$('#toc').toc({
container: '.documentation',
selectors: 'h1,h2,h3,h4',
anchorName: function(i, heading, prefix) {
heading = $(heading).text();
if (heading.trim) heading = heading.trim();
return heading.toLowerCase().replace(/ /g, '-').replace(/[^a-z^\-]+/g, '');
},
})
})
</script>
</body>
</html>