@@ -219,7 +219,7 @@ public void doUpdateInBulkWithManyElements(CouchDbConnector db) {
219
219
220
220
for (int i = 0 ; i < elementsCount ; i ++) {
221
221
String currentId = "TestDocumentBean-" + i ;
222
- TestDocumentBean bean = new TestDocumentBean (RandomStringUtils .randomAlphanumeric (32 ), RandomStringUtils .randomAlphanumeric (16 ), new Date (), 0 );
222
+ TestDocumentBean bean = new TestDocumentBean (RandomStringUtils .randomAlphanumeric (32 ), RandomStringUtils .randomAlphanumeric (16 ), System . currentTimeMillis (), 0 );
223
223
String currentRevision = currentRevisionById .get (currentId );
224
224
if (currentRevision != null ) {
225
225
bean .setId (currentId );
@@ -314,16 +314,16 @@ public void doUpdateInBulkWithOneSmallInputStream(CouchDbConnector db) throws Ex
314
314
315
315
316
316
public static class TestDocumentBean extends CouchDbDocument {
317
- public String lastName ;
318
- public String firstName ;
319
- public Date dateOfBirth ;
320
- public int version ;
317
+ private String lastName ;
318
+ private String firstName ;
319
+ private Long dateOfBirth ;
320
+ private int version ;
321
321
322
322
public TestDocumentBean () {
323
323
324
324
}
325
325
326
- public TestDocumentBean (String lastName , String firstName , Date dateOfBirth , int version ) {
326
+ public TestDocumentBean (String lastName , String firstName , Long dateOfBirth , int version ) {
327
327
this .lastName = lastName ;
328
328
this .firstName = firstName ;
329
329
this .dateOfBirth = dateOfBirth ;
0 commit comments