From 82be062daf7c154796cc36ab70f8291e39476661 Mon Sep 17 00:00:00 2001 From: Benjamin Kastelic Date: Sun, 21 Nov 2021 15:29:38 +0100 Subject: [PATCH 1/2] added local and offset time support, fixed count method --- .../com/kumuluz/ee/rest/utils/JPAUtils.java | 22 +- .../ee/rest/test/JPAUtilsCountTest.java | 17 ++ .../ee/rest/test/JPAUtilsTemporalTest.java | 20 ++ .../ee/rest/test/StreamUtilsCountTest.java | 23 +- .../ee/rest/test/StreamUtilsFieldsTest.java | 32 +-- .../ee/rest/test/StreamUtilsFiltersTest.java | 90 ++++---- .../ee/rest/test/StreamUtilsOrderTest.java | 38 ++-- .../ee/rest/test/StreamUtilsPagingTest.java | 16 +- .../kumuluz/ee/rest/test/entities/User.java | 26 +++ core/src/test/resources/db_init.sql | 200 +++++++++--------- 10 files changed, 289 insertions(+), 195 deletions(-) diff --git a/core/src/main/java/com/kumuluz/ee/rest/utils/JPAUtils.java b/core/src/main/java/com/kumuluz/ee/rest/utils/JPAUtils.java index 1d6f015..ed8f769 100644 --- a/core/src/main/java/com/kumuluz/ee/rest/utils/JPAUtils.java +++ b/core/src/main/java/com/kumuluz/ee/rest/utils/JPAUtils.java @@ -272,7 +272,7 @@ public static Long queryEntitiesCount(EntityManager em, Class entity, Que cq.where(wherePredicate); } - cq.select(cb.count(r)).distinct(requiresDistinct); + cq.select(requiresDistinct ? cb.countDistinct(r) : cb.count(r)); return em.createQuery(cq).getSingleResult(); } @@ -1028,13 +1028,22 @@ private static Object getValueForPath(Path path, String value) { try { - if (c.equals(Date.class)) + if (c.equals(Date.class)) { return Date.from(ZonedDateTime.parse(value).toInstant()); + } if (c.equals(Instant.class)) { return ZonedDateTime.parse(value).toInstant(); } + if (c.equals(LocalTime.class)) { + return LocalTime.parse(value); + } + + if (c.equals(OffsetTime.class)) { + return OffsetTime.parse(value); + } + if (c.equals(LocalDate.class)) { return LocalDate.parse(value); } @@ -1051,14 +1060,17 @@ private static Object getValueForPath(Path path, String value) { return ZonedDateTime.parse(value); } - if (c.equals(Boolean.class)) + if (c.equals(Boolean.class)) { return Boolean.parseBoolean(value); + } - if (c.isEnum()) + if (c.isEnum()) { return Enum.valueOf(c, value); + } - if (c.equals(UUID.class)) + if (c.equals(UUID.class)) { return UUID.fromString(value); + } } catch (IllegalArgumentException | DateTimeParseException e) { throw new InvalidFieldValueException(e.getMessage(), path.getAlias(), value); diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsCountTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsCountTest.java index ea869fa..64b038f 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsCountTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsCountTest.java @@ -69,4 +69,21 @@ public void testQueryCount() { Assert.assertNotNull(count); Assert.assertEquals(2, count.longValue()); } + + @Test + public void testQueryCount2() { + + QueryParameters q = new QueryParameters(); + + QueryFilter qf = new QueryFilter(); + qf.setField("projects.status"); + qf.setOperation(FilterOperation.EQ); + qf.setValue("ACTIVE"); + q.getFilters().add(qf); + + Long count = JPAUtils.queryEntitiesCount(em, User.class, q); + + Assert.assertNotNull(count); + Assert.assertEquals(39, count.longValue()); + } } diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsTemporalTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsTemporalTest.java index 7a8420f..c8bdf30 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsTemporalTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/JPAUtilsTemporalTest.java @@ -6,6 +6,7 @@ import com.kumuluz.ee.rest.enums.FilterOperation; import com.kumuluz.ee.rest.enums.OrderDirection; import com.kumuluz.ee.rest.test.entities.Event; +import com.kumuluz.ee.rest.test.entities.User; import com.kumuluz.ee.rest.test.utils.JpaUtil; import com.kumuluz.ee.rest.utils.JPAUtils; import org.junit.Assert; @@ -208,4 +209,23 @@ public void testFilterEQZonedDateTime() { Assert.assertEquals(1, events.size()); Assert.assertEquals(Integer.valueOf(1), events.get(0).getId()); } + + @Test + public void testFilterEQTime() { + + //Match with 06:20:11 + QueryFilter qf = new QueryFilter(); + qf.setField("registrationTime"); + qf.setOperation(FilterOperation.EQ); + qf.setValue("06:20:11"); + + QueryParameters q = new QueryParameters(); + q.getFilters().add(qf); + + List users = JPAUtils.queryEntities(em, User.class, q); + + Assert.assertNotNull(users); + Assert.assertEquals(1, users.size()); + Assert.assertEquals(Integer.valueOf(2), users.get(0).getId()); + } } diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsCountTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsCountTest.java index 50790ad..2421e3e 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsCountTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsCountTest.java @@ -39,7 +39,7 @@ public static Collection data() { @Test public void testEmptyQueryCount() { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); Long count = StreamUtils.queryEntitiesCount(users); @@ -67,11 +67,30 @@ public void testQueryCount() { qf.setValue("%ina"); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); Long count = StreamUtils.queryEntitiesCount(users, q); Assert.assertNotNull(count); Assert.assertEquals( 2L, count.longValue()); } + + @Test + public void testQueryCount2() { + + QueryParameters q = new QueryParameters(); + + QueryFilter qf = new QueryFilter(); + qf.setField("projects.status"); + qf.setOperation(FilterOperation.EQ); + qf.setValue("ACTIVE"); + q.getFilters().add(qf); + + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); + + Long count = StreamUtils.queryEntitiesCount(users, q); + + Assert.assertNotNull(count); + Assert.assertEquals(39, count.longValue()); + } } diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFieldsTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFieldsTest.java index c685acd..2909185 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFieldsTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFieldsTest.java @@ -49,7 +49,7 @@ public void testSingleStringField() { QueryParameters q = new QueryParameters(); q.getFields().add("firstname"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -68,7 +68,7 @@ public void testSingleLocalDateField() { QueryParameters q = new QueryParameters(); q.getFields().add("birthDate"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -86,7 +86,7 @@ public void testSingleLocalDateTimeField() { QueryParameters q = new QueryParameters(); q.getFields().add("registrationDate"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -104,7 +104,7 @@ public void testSingleBigDecimalField() { QueryParameters q = new QueryParameters(); q.getFields().add("score"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -125,7 +125,7 @@ public void ignoredFieldShouldReturnUnchangedResult() { q.getFields().add(ignoredFieldName); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -143,7 +143,7 @@ public void ignoredFieldOnOneToManyShouldReturnUnchangedResult() { q.getFields().add(ignoredFieldName); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -161,7 +161,7 @@ public void ignoredFieldOnOneToOneShouldReturnUnchangedResult() { q.getFields().add(ignoredFieldName); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -179,7 +179,7 @@ public void unknownSelectionFieldShouldReturnException() { q.getFields().add(ignoredFieldName); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); StreamUtils.queryEntities(users, q); @@ -191,7 +191,7 @@ public void testSingleFieldWithRestMapping() { QueryParameters q = new QueryParameters(); q.getFields().add("firstnameChanged"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -209,7 +209,7 @@ public void testComputedFieldsWithRestMapping() { QueryParameters q = new QueryParameters(); q.getFields().add("firstnameAndLastname"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -229,7 +229,7 @@ public void testOneToOneChildFieldsWithRestMapping() { q.getFields().add("career.experience"); q.getFields().add("career.currentPosition"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -248,7 +248,7 @@ public void testComputedOneToOneChildFieldsWithRestMapping() { q.getFilters().add(new QueryFilter("lastname", FilterOperation.EQ, "Torres")); q.getFields().add("emailAndCurrentPosition"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -271,7 +271,7 @@ public void testMultipleFields() { q.getFields().add("country"); q.getFields().add("role"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -294,7 +294,7 @@ public void testIdAvailable() { QueryParameters q = new QueryParameters(); q.getFields().add("lastname"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); users = StreamUtils.queryEntities(users, q); @@ -314,7 +314,7 @@ public void fieldsQueryShouldNotChangeOrder() { QueryParameters q = new QueryParameters(); q.getFields().add("lastname"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); List result = StreamUtils.queryEntities(users.stream(), User.class, q).collect(Collectors.toList()); @@ -332,7 +332,7 @@ public void testNonExistingField() { QueryParameters q = new QueryParameters(); q.getFields().add("something"); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); em.clear(); StreamUtils.queryEntities(users, q); diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFiltersTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFiltersTest.java index 0a01c71..40307fc 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFiltersTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsFiltersTest.java @@ -54,7 +54,7 @@ public void testSingleStringFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -74,7 +74,7 @@ public void testSingleLocalDateFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -95,7 +95,7 @@ public void testSingleLocalDateTimeFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -116,7 +116,7 @@ public void testSingleBigDecimalFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -137,7 +137,7 @@ public void testSingleFilterWithMultipleRestMapping() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -157,7 +157,7 @@ public void testSingleFilterWithRestMapping() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -177,7 +177,7 @@ public void testChildSingleFilterWithRestMapping() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -201,7 +201,7 @@ public void testSingleIntegerFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -222,7 +222,7 @@ public void testSingleDateFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -249,7 +249,7 @@ public void testMultipleFilters() { qf.setValue("%ina"); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -270,7 +270,7 @@ public void testWrongDateField() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -290,7 +290,7 @@ public void testNonExistingField() { q.getFilters().add(qf); try { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); StreamUtils.queryEntities(users, q); Assert.fail("No exception was thrown"); } catch (NoSuchEntityFieldException e) { @@ -309,7 +309,7 @@ public void testNullValue() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -327,7 +327,7 @@ public void testNullField() { q.getFilters().add(qf); try { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); StreamUtils.queryEntities(users, q); Assert.fail("No exception was thrown"); } catch (NoSuchEntityFieldException e) { @@ -350,7 +350,7 @@ public void testInFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -372,7 +372,7 @@ public void testNinFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -391,7 +391,7 @@ public void testNotEqual() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -410,7 +410,7 @@ public void testGte() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -427,7 +427,7 @@ public void testGte() { q = new QueryParameters(); q.getFilters().add(qf); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -445,7 +445,7 @@ public void testLt() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -462,7 +462,7 @@ public void testLt() { q = new QueryParameters(); q.getFilters().add(qf); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -480,7 +480,7 @@ public void testLte() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -496,7 +496,7 @@ public void testLte() { q = new QueryParameters(); q.getFilters().add(qf); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -514,7 +514,7 @@ public void testEqic() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -532,7 +532,7 @@ public void testNeqic() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -550,7 +550,7 @@ public void testLikeic() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -568,7 +568,7 @@ public void testNLikeic() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -586,7 +586,7 @@ public void testIntegerEq() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -604,7 +604,7 @@ public void testDateEq() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -624,7 +624,7 @@ public void testInic() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -644,7 +644,7 @@ public void testNinic() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -715,7 +715,7 @@ public void testOneToManyRelation() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -730,7 +730,7 @@ public void testOneToManyRelation() { q = new QueryParameters(); q.getFilters().add(qf); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -748,7 +748,7 @@ public void testOneToManyRelationMultiple() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -764,7 +764,7 @@ public void testOneToManyRelationMultiple() { q = new QueryParameters(); q.getFilters().add(qf); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -783,7 +783,7 @@ public void testOneToManyRelationOnlyFieldInteger() { q.getFilters().add(qf); List users = new ArrayList<>(); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -802,7 +802,7 @@ public void testFilterMultipleLevel() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -821,7 +821,7 @@ public void testFilterMultipleLevelEnum() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -897,7 +897,7 @@ public void testBooleanFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -916,7 +916,7 @@ public void testBooleanInFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -936,7 +936,7 @@ public void testBooleanNinFilter() { QueryParameters q = new QueryParameters(); q.getFilters().add(qf); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -1066,7 +1066,7 @@ public void ignoredFieldShouldReturnUnchangedResult() { q.getFilters().add(new QueryFilter(ignoredFieldName, FilterOperation.EQ, "customValue")); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -1083,7 +1083,7 @@ public void ignoredFieldOnOneToOneShouldReturnUnchangedResult() { q.getFilters().add(new QueryFilter(ignoredFieldName, FilterOperation.EQ, "customValue")); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -1103,7 +1103,7 @@ public void includeIgnoreOnMultipleFieldsOnOneToOneShouldReturnUnchangedResult() q.getFilters().add(new QueryFilter("career.years", FilterOperation.EQ, "5")); q.getFilters().add(new QueryFilter(ignoredFieldName, FilterOperation.EQ, "customValue")); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -1120,7 +1120,7 @@ public void unknownFilterFieldShouldReturnException() { q.getFilters().add(new QueryFilter(ignoredFieldName, FilterOperation.EQ, "customValue")); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); StreamUtils.queryEntities(users, q); } diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsOrderTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsOrderTest.java index 9259399..57d838e 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsOrderTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsOrderTest.java @@ -53,7 +53,7 @@ public void testSingleStringOrder() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -75,7 +75,7 @@ public void testSingleLocalDateOrder() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -97,14 +97,14 @@ public void testSingleLocalDateTimeOrder() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); Assert.assertEquals(100, users.size()); Assert.assertNotNull(users.get(97).getFirstname()); - Assert.assertEquals("Pamela", users.get(97).getFirstname()); + Assert.assertEquals("Annie", users.get(97).getFirstname()); Assert.assertNotNull(users.get(98).getFirstname()); Assert.assertEquals("Susan", users.get(98).getFirstname()); Assert.assertNotNull(users.get(99).getFirstname()); @@ -121,7 +121,7 @@ public void testSingleBigDecimalOrder() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -145,7 +145,7 @@ public void testSingleOrderWithRestMapping() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -167,7 +167,7 @@ public void testSingleOrderDesc() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -199,7 +199,7 @@ public void testMultipleOrders() { qo.setOrder(OrderDirection.DESC); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -224,7 +224,7 @@ public void testNullDirection() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -267,7 +267,7 @@ public void testNonExistentColumn() { try { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); StreamUtils.queryEntities(users, q); Assert.fail("No exception was thrown"); @@ -289,7 +289,7 @@ public void testCaseSensitiveField() { try { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); StreamUtils.queryEntities(users, q); Assert.fail("No exception was thrown"); @@ -348,7 +348,7 @@ public void testOneToManyOnlyField() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); StreamUtils.queryEntities(users, q); Assert.fail("No exception was thrown"); @@ -367,7 +367,7 @@ public void ignoredFieldShouldReturnUnchangedResult() { o.setOrder(OrderDirection.ASC); q.getOrder().add(o); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -386,7 +386,7 @@ public void ignoredFieldOnOneToOneShouldReturnUnchangedResult() { o.setOrder(OrderDirection.ASC); q.getOrder().add(o); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -418,7 +418,7 @@ public void shouldOrderByRelationHavingInheritance() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -445,7 +445,7 @@ public void shouldReturnAscNullsLastOrderedByOneToOneOnOneToManyRelation() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -472,7 +472,7 @@ public void shouldReturnDescNullsLastOrderedByOneToOneOnOneToManyRelation() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -499,7 +499,7 @@ public void shouldReturnAscNullsFirstOrderedByOneToOneOnOneToManyRelation() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -525,7 +525,7 @@ public void shouldReturnDescNullsFirstOrderedByOneToOneOnOneToManyRelation() { QueryParameters q = new QueryParameters(); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsPagingTest.java b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsPagingTest.java index 27c01d5..32336fe 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsPagingTest.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/StreamUtilsPagingTest.java @@ -38,7 +38,7 @@ public static Collection data() { @Test public void testEmptyQuery() { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, new QueryParameters()); Assert.assertNotNull(users); @@ -48,7 +48,7 @@ public void testEmptyQuery() { @Test public void testNullQuery() { - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users); Assert.assertNotNull(users); @@ -61,7 +61,7 @@ public void testLimit() { QueryParameters q = new QueryParameters(); q.setLimit(10); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -78,7 +78,7 @@ public void testOffset() { QueryParameters q = new QueryParameters(); q.setOffset(30); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -101,7 +101,7 @@ public void testLimitWithOffset() { q.setOffset(0); q.getOrder().add(qo); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); Assert.assertNotNull(users); @@ -109,7 +109,7 @@ public void testLimitWithOffset() { q.setOffset(24); - users = em.createNamedQuery("User.getAll").getResultList(); + users = em.createNamedQuery("User.getAll", User.class).getResultList(); List usersOffseted = StreamUtils.queryEntities(users, q); @@ -128,7 +128,7 @@ public void testLimitTooBig() { QueryParameters q = new QueryParameters(); q.setLimit(300); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); @@ -142,7 +142,7 @@ public void testOffsetOutOfBounds() { QueryParameters q = new QueryParameters(); q.setOffset(200); - List users = em.createNamedQuery("User.getAll").getResultList(); + List users = em.createNamedQuery("User.getAll", User.class).getResultList(); users = StreamUtils.queryEntities(users, q); diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java b/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java index 78a521c..4ac122b 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java @@ -11,6 +11,7 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; +import java.time.LocalTime; import java.util.Date; import java.util.List; import java.util.UUID; @@ -73,6 +74,9 @@ public class User implements Comparable, Serializable { @Column(name = "registration_date") private LocalDateTime registrationDate; + @Column(name = "registration_time") + private LocalTime registrationTime; + public Integer getId() { return id; } @@ -201,6 +205,14 @@ public void setRegistrationDate(LocalDateTime registrationDate) { this.registrationDate = registrationDate; } + public LocalTime getRegistrationTime() { + return registrationTime; + } + + public void setRegistrationTime(LocalTime registrationTime) { + this.registrationTime = registrationTime; + } + @Override public int compareTo(User o) { return id.compareTo(o.getId()); @@ -210,8 +222,22 @@ public int compareTo(User o) { public String toString() { return "User{" + "id=" + id + + ", uuid=" + uuid + ", firstname='" + firstname + '\'' + ", lastname='" + lastname + '\'' + + ", email='" + email + '\'' + + ", country='" + country + '\'' + + ", ip_address='" + ip_address + '\'' + + ", role=" + role + + ", confirmed=" + confirmed + + ", createdAt=" + createdAt + + ", projects=" + projects + + ", status=" + status + + ", career=" + career + + ", score=" + score + + ", birthDate=" + birthDate + + ", registrationDate=" + registrationDate + + ", registrationTime=" + registrationTime + '}'; } } diff --git a/core/src/test/resources/db_init.sql b/core/src/test/resources/db_init.sql index 20f85a9..10f0634 100644 --- a/core/src/test/resources/db_init.sql +++ b/core/src/test/resources/db_init.sql @@ -1,103 +1,103 @@ -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (1, '7932efdd-067b-4418-1ae9-725af9d63d36', 'Jason', 'Ramos', 'jramos0@ox.ac.uk', 'China', '143.242.153.55', 0, FALSE, '2014-07-10T21:55:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (2, '7932efdd-067b-4418-2ae9-725af9d63d36', 'Annie', 'Morgan', 'amorgan1@networksolutions.com', 'Finland', '30.236.196.91', 1, FALSE, '2015-04-30T04:21:11Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (3, '7932efdd-067b-4418-3ae9-725af9d63d36', 'Timothy', 'Ryan', 'tryan2@google.com.hk', 'Czech Republic', '128.240.122.193', 0, TRUE, '2014-11-02T01:12:40Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (4, '7932efdd-067b-4418-4ae9-725af9d63d36', 'Jean', 'Torres', 'jtorres3@comcast.net', 'China', '105.51.117.179', 1, FALSE, '2014-07-10T08:34:29Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (5, '7932efdd-067b-4418-5ae9-725af9d63d36', 'Clarence', 'Rose', 'crose4@comcast.net', 'China', '64.33.189.52', 1, TRUE, '2015-04-10T15:30:49Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (6, '7932efdd-067b-4418-6ae9-725af9d63d36', 'Patrick', 'Kennedy', 'pkennedy5@yelp.com', 'Tanzania', '80.175.40.15', 0, FALSE, '2014-11-16T11:44:46Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (7, '7932efdd-067b-4418-7ae9-725af9d63d36', 'Nicole', 'Frazier', 'nfrazier6@princeton.edu', 'Indonesia', '124.135.88.163', 1, FALSE, '2014-10-03T05:59:25Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (8, '7932efdd-067b-4418-8ae9-725af9d63d36', 'Bonnie', 'Dean', 'bdean7@oakley.com', 'France', '244.35.122.132', 0, TRUE, '2014-07-26T04:35:19Z', 15.7, '2015-04-09', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (9, '7932efdd-067b-4418-9ae9-725af9d63d36', 'Karen', 'Richardson', 'krichardson8@sitemeter.com', 'Togo', '236.27.251.16', 1, TRUE, '2015-03-16T14:34:13Z', 15.7, '2015-04-19', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (10, '7932efdd-067b-4418-10e9-725af9d63d36', 'Ronald', 'Hill', 'rhill9@blogtalkradio.com', 'Mexico', '49.69.176.122', 1, FALSE, '2014-11-11T05:39:44Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (11, '7932efdd-067b-4418-11e9-725af9d63d36', 'Sarah', 'Butler', 'sbutlera@dot.gov', 'China', '96.120.0.167', 1, FALSE, '2014-09-11T12:35:07Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (12, '7932efdd-067b-4418-12e9-725af9d63d36', 'Antonio', 'Mills', 'amillsb@issuu.com', 'Japan', '241.123.63.28', 1, TRUE, '2014-07-12T04:00:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (13, '7932efdd-067b-4418-13e9-725af9d63d36', 'Angela', 'Franklin', 'afranklinc@google.com.br', 'China', '29.73.25.119', 0, FALSE, '2014-10-26T10:01:53Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (14, '7932efdd-067b-4418-14e9-725af9d63d36', 'Richard', 'Wagner', 'rwagnerd@census.gov', 'Malaysia', '204.16.142.189', 1, FALSE, '2015-04-21T12:59:07Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (15, '7932efdd-067b-4418-15e9-725af9d63d36', 'Gerald', 'Warren', 'gwarrene@examiner.com', 'Russia', '230.233.18.189', 0, FALSE, '2014-12-10T19:10:49Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (16, '7932efdd-067b-4418-16e9-725af9d63d36', 'Russell', 'Lee', 'rleef@columbia.edu', 'Nigeria', '138.212.83.61', 0, TRUE, '2014-09-17T04:45:58Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (17, '7932efdd-067b-4418-17e9-725af9d63d36', 'Donald', 'Stewart', 'dstewartg@networkadvertising.org', 'Portugal', '149.81.18.52', 1, TRUE, '2015-04-18T03:55:47Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (18, '7932efdd-067b-4418-18e9-725af9d63d36', 'Debra', 'Ross', 'drossh@printfriendly.com', 'Israel', '91.176.111.236', 1, FALSE, '2014-05-05T20:43:23Z', 10.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (19, '7932efdd-067b-4418-19e9-725af9d63d36', 'Jack', 'Fox', 'jfoxi@tmall.com', 'Canada', '104.101.18.251', 1, TRUE, '2015-04-13T11:27:33Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (20, '7932efdd-067b-4418-20e9-725af9d63d36', 'Helen', 'Weaver', 'hweaverj@prweb.com', 'Ivory Coast', '155.115.108.38', 1, FALSE, '2014-10-13T16:51:12Z', 7.2, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (21, '7932efdd-067b-4418-21e9-725af9d63d36', 'Kathy', 'Carpenter', 'kcarpenterk@1688.com', 'Finland', '221.29.165.105', 1, TRUE, '2015-04-04T21:46:09Z', 7.12, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (22, '7932efdd-067b-4418-22e9-725af9d63d36', 'Melissa', 'Nguyen', 'mnguyenl@g.co', 'Philippines', '22.109.136.46', 1, FALSE, '2014-08-24T06:06:27Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (23, '7932efdd-067b-4418-23e9-725af9d63d36', 'Evelyn', 'Owens', 'eowensm@dion.ne.jp', 'Sweden', '244.255.69.199', 0, FALSE, '2015-03-07T09:27:36Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (24, '7932efdd-067b-4418-24e9-725af9d63d36', 'Arthur', 'Nguyen', 'anguyenn@weather.com', 'Malaysia', '206.66.157.148', 0, TRUE, '2014-05-08T10:01:19Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (25, '7932efdd-067b-4418-25e9-725af9d63d36', 'Jean', 'Harris', 'jharriso@de.vu', 'Thailand', '16.180.224.62', 1, TRUE, '2014-09-06T02:31:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (26, '7932efdd-067b-4418-26e9-725af9d63d36', 'Terry', 'Lee', 'tleep@cdbaby.com', 'Serbia', '210.206.110.167', 1, FALSE, '2014-06-10T10:28:53Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (27, '7932efdd-067b-4418-27e9-725af9d63d36', 'Michael', 'Ford', 'mfordq@fc2.com', 'Guam', '56.24.150.79', 1, TRUE, '2015-04-08T03:39:44Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (28, '7932efdd-067b-4418-28e9-725af9d63d36', 'Rose', 'Austin', 'raustinr@bandcamp.com', 'China', '174.8.24.19', 0, TRUE, '2015-03-16T20:11:54Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (29, '7932efdd-067b-4418-29e9-725af9d63d36', 'Karen', 'Henderson', 'khendersons@cnn.com', 'Philippines', '121.254.138.111', 0, TRUE, '2014-10-01T22:26:32Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (30, '7932efdd-067b-4418-30e9-725af9d63d36', 'Nicole', 'Jordan', 'njordant@techcrunch.com', 'Luxembourg', '47.45.86.147', 0, TRUE, '2015-01-19T14:52:03Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (31, '7932efdd-067b-4418-31e9-725af9d63d36', 'Antonio', 'Carroll', 'acarrollu@soup.io', 'Lebanon', '156.119.120.23', 0, TRUE, '2015-03-02T08:03:44Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (32, '7932efdd-067b-4418-32e9-725af9d63d36', 'Justin', 'Gardner', 'jgardnerv@whitehouse.gov', 'China', '79.232.166.125', 0, FALSE, '2015-01-21T03:50:23Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (33, '7932efdd-067b-4418-33e9-725af9d63d36', 'James', 'Sanchez', 'jsanchezw@ihg.com', 'Indonesia', '58.104.124.131', 0, FALSE, '2014-09-06T20:45:19Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (34, '7932efdd-067b-4418-34e9-725af9d63d36', 'Julia', 'Gonzalez', 'jgonzalezx@nba.com', 'Venezuela', '84.193.72.246', 0, TRUE, '2014-07-22T05:29:59Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (35, '7932efdd-067b-4418-35e9-725af9d63d36', 'Pamela', 'Carpenter', 'pcarpentery@hhs.gov', 'France', '211.58.64.201', 1, TRUE, '2015-02-13T10:47:34Z', 15.7, '2015-04-29', '2015-04-30T05:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (36, '7932efdd-067b-4418-36e9-725af9d63d36', 'Brandon', 'Hall', 'bhallz@t-online.de', 'Brazil', '69.255.228.104', 0, TRUE, '2015-01-12T15:27:54Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (37, '7932efdd-067b-4418-37e9-725af9d63d36', 'Susan', 'Graham', 'sgraham10@cmu.edu', 'Mongolia', '117.153.20.171', 0, TRUE, '2015-03-08T14:52:42Z', 15.7, '2015-04-29', '2015-04-30T10:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (38, '7932efdd-067b-4418-38e9-725af9d63d36', 'Craig', 'Long', 'clong11@theglobeandmail.com', 'Mexico', '77.141.238.88', 0, TRUE, '2014-12-19T09:54:00Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (39, '7932efdd-067b-4418-39e9-725af9d63d36', 'Steve', 'Hamilton', 'shamilton12@photobucket.com', 'China', '3.13.3.18', 1, FALSE, '2015-03-22T14:51:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (40, '7932efdd-067b-4418-40e9-725af9d63d36', 'John', 'Perry', 'jperry13@odnoklassniki.ru', 'Japan', '124.29.205.208', 0, FALSE, '2015-01-02T14:03:17Z', 15.7, '2015-04-29', '2015-04-30T12:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (41, '7932efdd-067b-4418-41e9-725af9d63d36', 'Mark', 'West', 'mwest14@jugem.jp', 'Belarus', '22.4.134.166', 1, TRUE, '2015-01-09T15:47:00Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (42, '7932efdd-067b-4418-42e9-725af9d63d36', 'Christopher', 'Ortiz', 'cortiz15@hubpages.com', 'Canada', '26.135.52.103', 0, FALSE, '2015-03-03T14:27:28Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (43, '7932efdd-067b-4418-43e9-725af9d63d36', 'Amanda', 'Fowler', 'afowler16@tuttocitta.it', 'Libya', '12.97.38.43', 1, FALSE, '2015-04-19T09:50:28Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (44, '7932efdd-067b-4418-44e9-725af9d63d36', 'Margaret', 'Olson', 'molson17@dedecms.com', 'China', '127.9.213.156', 0, TRUE, '2015-01-23T19:28:09Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (45, '7932efdd-067b-4418-45e9-725af9d63d36', 'Kevin', 'Hanson', 'khanson18@elegantthemes.com', 'Poland', '16.70.109.39', 0, TRUE, '2015-02-13T13:14:35Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (46, '7932efdd-067b-4418-46e9-725af9d63d36', 'Cynthia', 'Long', 'clong19@dell.com', 'Portugal', '109.235.69.64', 1, TRUE, '2015-04-18T05:25:38Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (47, '7932efdd-067b-4418-47e9-725af9d63d36', 'Melissa', 'Richards', 'mrichards1a@macromedia.com', 'Yemen', '103.178.111.43', 1, TRUE, '2014-07-22T15:01:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (48, '7932efdd-067b-4418-48e9-725af9d63d36', 'Tammy', 'Bishop', 'tbishop1b@yandex.ru', 'Portugal', '53.42.24.170', 0, TRUE, '2014-08-10T17:50:49Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (49, '7932efdd-067b-4418-49e9-725af9d63d36', 'Robin', 'Perry', 'rperry1c@buzzfeed.com', 'United States', '17.155.137.182', 0, FALSE, '2014-08-05T16:26:12Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (50, '7932efdd-067b-4418-50e9-725af9d63d36', 'Larry', 'Bailey', 'lbailey1d@adobe.com', 'Sweden', '221.95.75.202', 1, TRUE, '2014-05-15T16:29:39Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (51, '7932efdd-067b-4418-51e9-725af9d63d36', 'Emily', 'Stone', 'estone1e@nsw.gov.au', 'Poland', '124.218.35.87', 0, TRUE, '2014-07-10T18:05:46Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (52, '7932efdd-067b-4418-52e9-725af9d63d36', 'Lois', 'Hawkins', 'lhawkins1f@clickbank.net', 'China', '189.53.216.227', 1, FALSE, '2014-10-10T00:19:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (53, '7932efdd-067b-4418-53e9-725af9d63d36', 'Nancy', 'Gomez', 'ngomez1g@independent.co.uk', 'China', '27.211.20.72', 1, TRUE, '2014-06-26T14:23:37Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (54, '7932efdd-067b-4418-54e9-725af9d63d36', 'Karen', 'Jackson', 'kjackson1h@zimbio.com', 'China', '97.7.23.251', 1, TRUE, '2015-04-19T22:54:13Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (55, '7932efdd-067b-4418-55e9-725af9d63d36', 'Laura', 'Hayes', 'lhayes1i@trellian.com', 'China', '150.253.113.20', 1, TRUE, '2015-03-11T17:49:35Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (56, '7932efdd-067b-4418-56e9-725af9d63d36', 'Antonio', 'Turner', 'aturner1j@lulu.com', 'China', '206.167.230.19', 0, TRUE, '2014-10-14T23:43:36Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (57, '7932efdd-067b-4418-57e9-725af9d63d36', 'Martin', 'Sanchez', 'msanchez1k@pbs.org', 'Indonesia', '249.36.78.228', 1, FALSE, '2014-10-24T02:43:29Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (58, '7932efdd-067b-4418-58e9-725af9d63d36', 'Keith', 'Little', 'klittle1l@icio.us', 'Ukraine', '24.39.76.1', 0, FALSE, '2014-07-20T22:14:51Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (59, '7932efdd-067b-4418-59e9-725af9d63d36', 'Joyce', 'Gardner', 'jgardner1m@shareasale.com', 'Indonesia', '60.223.0.117', 0, FALSE, '2015-01-29T10:45:11Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (60, '7932efdd-067b-4418-60e9-725af9d63d36', 'Steve', 'Phillips', 'sphillips1n@parallels.com', 'China', '116.140.102.180', 1, FALSE, '2014-07-19T04:49:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (61, '7932efdd-067b-4418-61e9-725af9d63d36', 'Andrea', 'Simpson', 'asimpson1o@baidu.com', 'Afghanistan', '99.120.93.157', 0, FALSE, '2014-08-07T23:31:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (62, '7932efdd-067b-4418-62e9-725af9d63d36', 'Sean', 'Kennedy', 'skennedy1p@fastcompany.com', 'Sweden', '193.237.119.67', 0, TRUE, '2014-07-12T15:16:47Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (63, '7932efdd-067b-4418-63e9-725af9d63d36', 'Emily', 'Davis', 'edavis1q@go.com', 'China', '0.134.136.170', 0, FALSE, '2014-11-26T11:15:08Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (64, '7932efdd-067b-4418-64e9-725af9d63d36', 'Heather', 'Davis', 'hdavis1r@auda.org.au', 'Montenegro', '251.115.220.9', 0, FALSE, '2014-10-29T15:20:03Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (65, '7932efdd-067b-4418-65e9-725af9d63d36', 'Denise', 'Lopez', 'dlopez1s@europa.eu', 'China', '224.183.173.226', 0, TRUE, '2014-11-21T02:44:40Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (66, '7932efdd-067b-4418-66e9-725af9d63d36', 'Raymond', 'Hill', 'rhill1t@domainmarket.com', 'China', '16.52.168.229', 1, FALSE, '2014-05-22T22:32:56Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (67, '7932efdd-067b-4418-67e9-725af9d63d36', 'Jonathan', 'Medina', 'jmedina1u@wikispaces.com', 'Philippines', '214.233.136.130', 1, TRUE, '2014-07-02T10:55:43Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (68, '7932efdd-067b-4418-68e9-725af9d63d36', 'Bruce', 'Ford', 'bford1v@patch.com', 'Ukraine', '201.242.112.19', 1, TRUE, '2015-04-16T05:24:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (69, '7932efdd-067b-4418-69e9-725af9d63d36', 'Ronald', 'Banks', 'rbanks1w@bloomberg.com', 'Cameroon', '62.68.208.117', 0, FALSE, '2014-08-05T13:27:26Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (70, '7932efdd-067b-4418-70e9-725af9d63d36', 'Diane', 'Martin', 'dmartin1x@mashable.com', 'Belgium', '249.226.210.177', 1, TRUE, '2014-06-26T20:37:18Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (71, '7932efdd-067b-4418-71e9-725af9d63d36', 'Shawn', 'Freeman', 'sfreeman1y@jigsy.com', 'Brazil', '206.80.154.97', 1, FALSE, '2014-05-30T09:11:16Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (72, '7932efdd-067b-4418-72e9-725af9d63d36', 'Anna', 'Bryant', 'abryant1z@spiegel.de', 'Peru', '93.129.234.110', 0, TRUE, '2015-04-25T23:24:25Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (73, '7932efdd-067b-4418-73e9-725af9d63d36', 'Phillip', 'Mitchell', 'pmitchell20@mapquest.com', 'France', '68.92.139.163', 0, FALSE, '2014-05-23T20:31:24Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (74, '7932efdd-067b-4418-74e9-725af9d63d36', 'Beverly', 'Rose', 'brose21@blogtalkradio.com', 'Pakistan', '21.162.221.187', 0, TRUE, '2014-12-17T07:07:38Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (75, '7932efdd-067b-4418-75e9-725af9d63d36', 'Teresa', 'Hudson', 'thudson22@yelp.com', 'Russia', '30.191.72.181', 1, FALSE, '2014-10-03T10:06:03Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (76, '7932efdd-067b-4418-76e9-725af9d63d36', 'Judith', 'Gomez', 'jgomez23@ted.com', 'Portugal', '217.90.150.172', 1, TRUE, '2015-04-22T10:56:22Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (77, '7932efdd-067b-4418-77e9-725af9d63d36', 'Karen', 'Edwards', 'kedwards24@mozilla.org', 'Sweden', '91.208.254.31', 0, FALSE, '2014-12-30T03:51:55Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (78, '7932efdd-067b-4418-78e9-725af9d63d36', 'Julia', 'Banks', 'jbanks25@jugem.jp', 'Egypt', '200.110.112.168', 1, TRUE, '2015-02-25T04:26:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (79, '7932efdd-067b-4418-79e9-725af9d63d36', 'Benjamin', 'Foster', 'bfoster26@jalbum.net', 'United States', '29.204.75.36', 0, TRUE, '2015-03-28T06:31:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (80, '7932efdd-067b-4418-80e9-725af9d63d36', 'Roy', 'Williamson', 'rwilliamson27@issuu.com', 'Ukraine', '16.132.69.33', 0, TRUE, '2014-05-15T03:51:29Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (81, '7932efdd-067b-4418-81e9-725af9d63d36', 'Martha', 'Ward', 'mward28@comcast.net', 'Philippines', '39.61.249.178', 1, TRUE, '2014-10-16T02:20:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (82, '7932efdd-067b-4418-82e9-725af9d63d36', 'Bonnie', 'Turner', 'bturner29@baidu.com', 'Philippines', '46.164.52.154', 1, FALSE, '2014-12-19T22:31:15Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (83, '7932efdd-067b-4418-83e9-725af9d63d36', 'Anne', 'Baker', 'abaker2a@elegantthemes.com', 'Poland', '237.166.133.250', 1, TRUE, '2014-10-11T11:09:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (84, '7932efdd-067b-4418-84e9-725af9d63d36', 'Frances', 'Olson', 'folson2b@yolasite.com', 'Russia', '160.188.69.224', 0, TRUE, '2014-11-10T02:40:20Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (85, '7932efdd-067b-4418-85e9-725af9d63d36', 'Laura', 'Bell', 'lbell2c@jimdo.com', 'Poland', '229.185.230.11', 0, FALSE, '2014-06-23T13:28:43Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (86, '7932efdd-067b-4418-86e9-725af9d63d36', 'Arthur', 'Jordan', 'ajordan2d@pbs.org', 'China', '191.209.4.196', 1, TRUE, '2015-04-29T00:05:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (87, '7932efdd-067b-4418-87e9-725af9d63d36', 'Ernest', 'Banks', 'ebanks2e@behance.net', 'Indonesia', '144.189.217.63', 0, TRUE, '2014-10-06T02:47:24Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (88, '7932efdd-067b-4418-88e9-725af9d63d36', 'Sandra', 'Knight', 'sknight2f@cmu.edu', 'Russia', '181.78.102.125', 1, FALSE, '2014-07-01T05:19:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (89, '7932efdd-067b-4418-89e9-725af9d63d36', 'Marilyn', 'Shaw', 'mshaw2g@w3.org', 'Indonesia', '142.103.108.211', 1, TRUE, '2014-11-09T18:37:42Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (90, '7932efdd-067b-4418-90e9-725af9d63d36', 'Stephanie', 'Crawford', 'scrawford2h@abc.net.au', 'China', '134.116.13.20', 0, TRUE, '2014-06-06T20:46:22Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (91, '7932efdd-067b-4418-91e9-725af9d63d36', 'Karen', 'Morales', 'kmorales2i@yellowpages.com', 'Finland', '116.20.58.162', 0, TRUE, '2014-05-17T15:41:11Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (92, '7932efdd-067b-4418-92e9-725af9d63d36', 'Terry', 'Willis', 'twillis2j@eepurl.com', 'China', '189.23.185.195', 1, TRUE, '2014-11-22T02:28:35Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (93, '7932efdd-067b-4418-93e9-725af9d63d36', 'Ryan', 'Lawrence', 'rlawrence2k@tinypic.com', 'Indonesia', '198.92.144.106', 0, TRUE, '2014-10-14T18:26:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (94, '7932efdd-067b-4418-94e9-725af9d63d36', 'Jacqueline', 'Phillips', 'jphillips2l@artisteer.com', 'Brazil', '148.173.248.249', 0, TRUE, '2014-09-03T03:39:12Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (95, '7932efdd-067b-4418-95e9-725af9d63d36', 'Bonnie', 'Willis', 'bwillis2m@forbes.com', 'Indonesia', '28.170.46.109', 0, FALSE, '2014-09-19T05:03:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (96, '7932efdd-067b-4418-96e9-725af9d63d36', 'Victor', 'Ward', 'vward2n@1688.com', 'China', '43.32.33.88', 0, FALSE, '2014-11-09T21:17:53Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (97, '7932efdd-067b-4418-97e9-725af9d63d36', 'Jack', 'Holmes', 'jholmes2o@cnet.com', 'Pakistan', '165.201.62.239', 1, FALSE, '2014-05-21T02:24:10Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (98, '7932efdd-067b-4418-98e9-725af9d63d36', 'Patrick', 'Willis', 'pwillis2p@pbs.org', 'Colombia', '106.33.124.211', 0, FALSE, '2014-12-20T19:28:38Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (99, '7932efdd-067b-4418-99e9-725af9d63d36', 'Shirley', 'Warren', 'swarren2q@blogger.com', 'Nigeria', '86.48.161.126', 0, FALSE, '2014-11-10T04:19:46Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); -insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date) values (100, '7932efdd-067b-4418-1009-725af9d63d36', 'Jonathan', 'Hall', 'jhall2r@lycos.com', 'China', '40.240.80.91', 0, FALSE, '2014-07-23T08:47:02Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (1, '7932efdd-067b-4418-1ae9-725af9d63d36', 'Jason', 'Ramos', 'jramos0@ox.ac.uk', 'China', '143.242.153.55', 0, FALSE, '2014-07-10T21:55:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (2, '7932efdd-067b-4418-2ae9-725af9d63d36', 'Annie', 'Morgan', 'amorgan1@networksolutions.com', 'Finland', '30.236.196.91', 1, FALSE, '2015-04-30T04:21:11Z', 15.7, '2015-04-29', '2015-04-30T06:20:11Z', '06:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (3, '7932efdd-067b-4418-3ae9-725af9d63d36', 'Timothy', 'Ryan', 'tryan2@google.com.hk', 'Czech Republic', '128.240.122.193', 0, TRUE, '2014-11-02T01:12:40Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (4, '7932efdd-067b-4418-4ae9-725af9d63d36', 'Jean', 'Torres', 'jtorres3@comcast.net', 'China', '105.51.117.179', 1, FALSE, '2014-07-10T08:34:29Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (5, '7932efdd-067b-4418-5ae9-725af9d63d36', 'Clarence', 'Rose', 'crose4@comcast.net', 'China', '64.33.189.52', 1, TRUE, '2015-04-10T15:30:49Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (6, '7932efdd-067b-4418-6ae9-725af9d63d36', 'Patrick', 'Kennedy', 'pkennedy5@yelp.com', 'Tanzania', '80.175.40.15', 0, FALSE, '2014-11-16T11:44:46Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (7, '7932efdd-067b-4418-7ae9-725af9d63d36', 'Nicole', 'Frazier', 'nfrazier6@princeton.edu', 'Indonesia', '124.135.88.163', 1, FALSE, '2014-10-03T05:59:25Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (8, '7932efdd-067b-4418-8ae9-725af9d63d36', 'Bonnie', 'Dean', 'bdean7@oakley.com', 'France', '244.35.122.132', 0, TRUE, '2014-07-26T04:35:19Z', 15.7, '2015-04-09', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (9, '7932efdd-067b-4418-9ae9-725af9d63d36', 'Karen', 'Richardson', 'krichardson8@sitemeter.com', 'Togo', '236.27.251.16', 1, TRUE, '2015-03-16T14:34:13Z', 15.7, '2015-04-19', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (10, '7932efdd-067b-4418-10e9-725af9d63d36', 'Ronald', 'Hill', 'rhill9@blogtalkradio.com', 'Mexico', '49.69.176.122', 1, FALSE, '2014-11-11T05:39:44Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (11, '7932efdd-067b-4418-11e9-725af9d63d36', 'Sarah', 'Butler', 'sbutlera@dot.gov', 'China', '96.120.0.167', 1, FALSE, '2014-09-11T12:35:07Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (12, '7932efdd-067b-4418-12e9-725af9d63d36', 'Antonio', 'Mills', 'amillsb@issuu.com', 'Japan', '241.123.63.28', 1, TRUE, '2014-07-12T04:00:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (13, '7932efdd-067b-4418-13e9-725af9d63d36', 'Angela', 'Franklin', 'afranklinc@google.com.br', 'China', '29.73.25.119', 0, FALSE, '2014-10-26T10:01:53Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (14, '7932efdd-067b-4418-14e9-725af9d63d36', 'Richard', 'Wagner', 'rwagnerd@census.gov', 'Malaysia', '204.16.142.189', 1, FALSE, '2015-04-21T12:59:07Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (15, '7932efdd-067b-4418-15e9-725af9d63d36', 'Gerald', 'Warren', 'gwarrene@examiner.com', 'Russia', '230.233.18.189', 0, FALSE, '2014-12-10T19:10:49Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (16, '7932efdd-067b-4418-16e9-725af9d63d36', 'Russell', 'Lee', 'rleef@columbia.edu', 'Nigeria', '138.212.83.61', 0, TRUE, '2014-09-17T04:45:58Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (17, '7932efdd-067b-4418-17e9-725af9d63d36', 'Donald', 'Stewart', 'dstewartg@networkadvertising.org', 'Portugal', '149.81.18.52', 1, TRUE, '2015-04-18T03:55:47Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (18, '7932efdd-067b-4418-18e9-725af9d63d36', 'Debra', 'Ross', 'drossh@printfriendly.com', 'Israel', '91.176.111.236', 1, FALSE, '2014-05-05T20:43:23Z', 10.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (19, '7932efdd-067b-4418-19e9-725af9d63d36', 'Jack', 'Fox', 'jfoxi@tmall.com', 'Canada', '104.101.18.251', 1, TRUE, '2015-04-13T11:27:33Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (20, '7932efdd-067b-4418-20e9-725af9d63d36', 'Helen', 'Weaver', 'hweaverj@prweb.com', 'Ivory Coast', '155.115.108.38', 1, FALSE, '2014-10-13T16:51:12Z', 7.2, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (21, '7932efdd-067b-4418-21e9-725af9d63d36', 'Kathy', 'Carpenter', 'kcarpenterk@1688.com', 'Finland', '221.29.165.105', 1, TRUE, '2015-04-04T21:46:09Z', 7.12, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (22, '7932efdd-067b-4418-22e9-725af9d63d36', 'Melissa', 'Nguyen', 'mnguyenl@g.co', 'Philippines', '22.109.136.46', 1, FALSE, '2014-08-24T06:06:27Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (23, '7932efdd-067b-4418-23e9-725af9d63d36', 'Evelyn', 'Owens', 'eowensm@dion.ne.jp', 'Sweden', '244.255.69.199', 0, FALSE, '2015-03-07T09:27:36Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (24, '7932efdd-067b-4418-24e9-725af9d63d36', 'Arthur', 'Nguyen', 'anguyenn@weather.com', 'Malaysia', '206.66.157.148', 0, TRUE, '2014-05-08T10:01:19Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (25, '7932efdd-067b-4418-25e9-725af9d63d36', 'Jean', 'Harris', 'jharriso@de.vu', 'Thailand', '16.180.224.62', 1, TRUE, '2014-09-06T02:31:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (26, '7932efdd-067b-4418-26e9-725af9d63d36', 'Terry', 'Lee', 'tleep@cdbaby.com', 'Serbia', '210.206.110.167', 1, FALSE, '2014-06-10T10:28:53Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (27, '7932efdd-067b-4418-27e9-725af9d63d36', 'Michael', 'Ford', 'mfordq@fc2.com', 'Guam', '56.24.150.79', 1, TRUE, '2015-04-08T03:39:44Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (28, '7932efdd-067b-4418-28e9-725af9d63d36', 'Rose', 'Austin', 'raustinr@bandcamp.com', 'China', '174.8.24.19', 0, TRUE, '2015-03-16T20:11:54Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (29, '7932efdd-067b-4418-29e9-725af9d63d36', 'Karen', 'Henderson', 'khendersons@cnn.com', 'Philippines', '121.254.138.111', 0, TRUE, '2014-10-01T22:26:32Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (30, '7932efdd-067b-4418-30e9-725af9d63d36', 'Nicole', 'Jordan', 'njordant@techcrunch.com', 'Luxembourg', '47.45.86.147', 0, TRUE, '2015-01-19T14:52:03Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (31, '7932efdd-067b-4418-31e9-725af9d63d36', 'Antonio', 'Carroll', 'acarrollu@soup.io', 'Lebanon', '156.119.120.23', 0, TRUE, '2015-03-02T08:03:44Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (32, '7932efdd-067b-4418-32e9-725af9d63d36', 'Justin', 'Gardner', 'jgardnerv@whitehouse.gov', 'China', '79.232.166.125', 0, FALSE, '2015-01-21T03:50:23Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (33, '7932efdd-067b-4418-33e9-725af9d63d36', 'James', 'Sanchez', 'jsanchezw@ihg.com', 'Indonesia', '58.104.124.131', 0, FALSE, '2014-09-06T20:45:19Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (34, '7932efdd-067b-4418-34e9-725af9d63d36', 'Julia', 'Gonzalez', 'jgonzalezx@nba.com', 'Venezuela', '84.193.72.246', 0, TRUE, '2014-07-22T05:29:59Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (35, '7932efdd-067b-4418-35e9-725af9d63d36', 'Pamela', 'Carpenter', 'pcarpentery@hhs.gov', 'France', '211.58.64.201', 1, TRUE, '2015-02-13T10:47:34Z', 15.7, '2015-04-29', '2015-04-30T05:20:11Z', '05:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (36, '7932efdd-067b-4418-36e9-725af9d63d36', 'Brandon', 'Hall', 'bhallz@t-online.de', 'Brazil', '69.255.228.104', 0, TRUE, '2015-01-12T15:27:54Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (37, '7932efdd-067b-4418-37e9-725af9d63d36', 'Susan', 'Graham', 'sgraham10@cmu.edu', 'Mongolia', '117.153.20.171', 0, TRUE, '2015-03-08T14:52:42Z', 15.7, '2015-04-29', '2015-04-30T10:20:11Z', '10:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (38, '7932efdd-067b-4418-38e9-725af9d63d36', 'Craig', 'Long', 'clong11@theglobeandmail.com', 'Mexico', '77.141.238.88', 0, TRUE, '2014-12-19T09:54:00Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (39, '7932efdd-067b-4418-39e9-725af9d63d36', 'Steve', 'Hamilton', 'shamilton12@photobucket.com', 'China', '3.13.3.18', 1, FALSE, '2015-03-22T14:51:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (40, '7932efdd-067b-4418-40e9-725af9d63d36', 'John', 'Perry', 'jperry13@odnoklassniki.ru', 'Japan', '124.29.205.208', 0, FALSE, '2015-01-02T14:03:17Z', 15.7, '2015-04-29', '2015-04-30T12:20:11Z', '12:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (41, '7932efdd-067b-4418-41e9-725af9d63d36', 'Mark', 'West', 'mwest14@jugem.jp', 'Belarus', '22.4.134.166', 1, TRUE, '2015-01-09T15:47:00Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (42, '7932efdd-067b-4418-42e9-725af9d63d36', 'Christopher', 'Ortiz', 'cortiz15@hubpages.com', 'Canada', '26.135.52.103', 0, FALSE, '2015-03-03T14:27:28Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (43, '7932efdd-067b-4418-43e9-725af9d63d36', 'Amanda', 'Fowler', 'afowler16@tuttocitta.it', 'Libya', '12.97.38.43', 1, FALSE, '2015-04-19T09:50:28Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (44, '7932efdd-067b-4418-44e9-725af9d63d36', 'Margaret', 'Olson', 'molson17@dedecms.com', 'China', '127.9.213.156', 0, TRUE, '2015-01-23T19:28:09Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (45, '7932efdd-067b-4418-45e9-725af9d63d36', 'Kevin', 'Hanson', 'khanson18@elegantthemes.com', 'Poland', '16.70.109.39', 0, TRUE, '2015-02-13T13:14:35Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (46, '7932efdd-067b-4418-46e9-725af9d63d36', 'Cynthia', 'Long', 'clong19@dell.com', 'Portugal', '109.235.69.64', 1, TRUE, '2015-04-18T05:25:38Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (47, '7932efdd-067b-4418-47e9-725af9d63d36', 'Melissa', 'Richards', 'mrichards1a@macromedia.com', 'Yemen', '103.178.111.43', 1, TRUE, '2014-07-22T15:01:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (48, '7932efdd-067b-4418-48e9-725af9d63d36', 'Tammy', 'Bishop', 'tbishop1b@yandex.ru', 'Portugal', '53.42.24.170', 0, TRUE, '2014-08-10T17:50:49Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (49, '7932efdd-067b-4418-49e9-725af9d63d36', 'Robin', 'Perry', 'rperry1c@buzzfeed.com', 'United States', '17.155.137.182', 0, FALSE, '2014-08-05T16:26:12Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (50, '7932efdd-067b-4418-50e9-725af9d63d36', 'Larry', 'Bailey', 'lbailey1d@adobe.com', 'Sweden', '221.95.75.202', 1, TRUE, '2014-05-15T16:29:39Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (51, '7932efdd-067b-4418-51e9-725af9d63d36', 'Emily', 'Stone', 'estone1e@nsw.gov.au', 'Poland', '124.218.35.87', 0, TRUE, '2014-07-10T18:05:46Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (52, '7932efdd-067b-4418-52e9-725af9d63d36', 'Lois', 'Hawkins', 'lhawkins1f@clickbank.net', 'China', '189.53.216.227', 1, FALSE, '2014-10-10T00:19:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (53, '7932efdd-067b-4418-53e9-725af9d63d36', 'Nancy', 'Gomez', 'ngomez1g@independent.co.uk', 'China', '27.211.20.72', 1, TRUE, '2014-06-26T14:23:37Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (54, '7932efdd-067b-4418-54e9-725af9d63d36', 'Karen', 'Jackson', 'kjackson1h@zimbio.com', 'China', '97.7.23.251', 1, TRUE, '2015-04-19T22:54:13Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (55, '7932efdd-067b-4418-55e9-725af9d63d36', 'Laura', 'Hayes', 'lhayes1i@trellian.com', 'China', '150.253.113.20', 1, TRUE, '2015-03-11T17:49:35Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (56, '7932efdd-067b-4418-56e9-725af9d63d36', 'Antonio', 'Turner', 'aturner1j@lulu.com', 'China', '206.167.230.19', 0, TRUE, '2014-10-14T23:43:36Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (57, '7932efdd-067b-4418-57e9-725af9d63d36', 'Martin', 'Sanchez', 'msanchez1k@pbs.org', 'Indonesia', '249.36.78.228', 1, FALSE, '2014-10-24T02:43:29Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (58, '7932efdd-067b-4418-58e9-725af9d63d36', 'Keith', 'Little', 'klittle1l@icio.us', 'Ukraine', '24.39.76.1', 0, FALSE, '2014-07-20T22:14:51Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (59, '7932efdd-067b-4418-59e9-725af9d63d36', 'Joyce', 'Gardner', 'jgardner1m@shareasale.com', 'Indonesia', '60.223.0.117', 0, FALSE, '2015-01-29T10:45:11Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (60, '7932efdd-067b-4418-60e9-725af9d63d36', 'Steve', 'Phillips', 'sphillips1n@parallels.com', 'China', '116.140.102.180', 1, FALSE, '2014-07-19T04:49:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (61, '7932efdd-067b-4418-61e9-725af9d63d36', 'Andrea', 'Simpson', 'asimpson1o@baidu.com', 'Afghanistan', '99.120.93.157', 0, FALSE, '2014-08-07T23:31:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (62, '7932efdd-067b-4418-62e9-725af9d63d36', 'Sean', 'Kennedy', 'skennedy1p@fastcompany.com', 'Sweden', '193.237.119.67', 0, TRUE, '2014-07-12T15:16:47Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (63, '7932efdd-067b-4418-63e9-725af9d63d36', 'Emily', 'Davis', 'edavis1q@go.com', 'China', '0.134.136.170', 0, FALSE, '2014-11-26T11:15:08Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (64, '7932efdd-067b-4418-64e9-725af9d63d36', 'Heather', 'Davis', 'hdavis1r@auda.org.au', 'Montenegro', '251.115.220.9', 0, FALSE, '2014-10-29T15:20:03Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (65, '7932efdd-067b-4418-65e9-725af9d63d36', 'Denise', 'Lopez', 'dlopez1s@europa.eu', 'China', '224.183.173.226', 0, TRUE, '2014-11-21T02:44:40Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (66, '7932efdd-067b-4418-66e9-725af9d63d36', 'Raymond', 'Hill', 'rhill1t@domainmarket.com', 'China', '16.52.168.229', 1, FALSE, '2014-05-22T22:32:56Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (67, '7932efdd-067b-4418-67e9-725af9d63d36', 'Jonathan', 'Medina', 'jmedina1u@wikispaces.com', 'Philippines', '214.233.136.130', 1, TRUE, '2014-07-02T10:55:43Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (68, '7932efdd-067b-4418-68e9-725af9d63d36', 'Bruce', 'Ford', 'bford1v@patch.com', 'Ukraine', '201.242.112.19', 1, TRUE, '2015-04-16T05:24:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (69, '7932efdd-067b-4418-69e9-725af9d63d36', 'Ronald', 'Banks', 'rbanks1w@bloomberg.com', 'Cameroon', '62.68.208.117', 0, FALSE, '2014-08-05T13:27:26Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (70, '7932efdd-067b-4418-70e9-725af9d63d36', 'Diane', 'Martin', 'dmartin1x@mashable.com', 'Belgium', '249.226.210.177', 1, TRUE, '2014-06-26T20:37:18Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (71, '7932efdd-067b-4418-71e9-725af9d63d36', 'Shawn', 'Freeman', 'sfreeman1y@jigsy.com', 'Brazil', '206.80.154.97', 1, FALSE, '2014-05-30T09:11:16Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (72, '7932efdd-067b-4418-72e9-725af9d63d36', 'Anna', 'Bryant', 'abryant1z@spiegel.de', 'Peru', '93.129.234.110', 0, TRUE, '2015-04-25T23:24:25Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (73, '7932efdd-067b-4418-73e9-725af9d63d36', 'Phillip', 'Mitchell', 'pmitchell20@mapquest.com', 'France', '68.92.139.163', 0, FALSE, '2014-05-23T20:31:24Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (74, '7932efdd-067b-4418-74e9-725af9d63d36', 'Beverly', 'Rose', 'brose21@blogtalkradio.com', 'Pakistan', '21.162.221.187', 0, TRUE, '2014-12-17T07:07:38Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (75, '7932efdd-067b-4418-75e9-725af9d63d36', 'Teresa', 'Hudson', 'thudson22@yelp.com', 'Russia', '30.191.72.181', 1, FALSE, '2014-10-03T10:06:03Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (76, '7932efdd-067b-4418-76e9-725af9d63d36', 'Judith', 'Gomez', 'jgomez23@ted.com', 'Portugal', '217.90.150.172', 1, TRUE, '2015-04-22T10:56:22Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (77, '7932efdd-067b-4418-77e9-725af9d63d36', 'Karen', 'Edwards', 'kedwards24@mozilla.org', 'Sweden', '91.208.254.31', 0, FALSE, '2014-12-30T03:51:55Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (78, '7932efdd-067b-4418-78e9-725af9d63d36', 'Julia', 'Banks', 'jbanks25@jugem.jp', 'Egypt', '200.110.112.168', 1, TRUE, '2015-02-25T04:26:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (79, '7932efdd-067b-4418-79e9-725af9d63d36', 'Benjamin', 'Foster', 'bfoster26@jalbum.net', 'United States', '29.204.75.36', 0, TRUE, '2015-03-28T06:31:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (80, '7932efdd-067b-4418-80e9-725af9d63d36', 'Roy', 'Williamson', 'rwilliamson27@issuu.com', 'Ukraine', '16.132.69.33', 0, TRUE, '2014-05-15T03:51:29Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (81, '7932efdd-067b-4418-81e9-725af9d63d36', 'Martha', 'Ward', 'mward28@comcast.net', 'Philippines', '39.61.249.178', 1, TRUE, '2014-10-16T02:20:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (82, '7932efdd-067b-4418-82e9-725af9d63d36', 'Bonnie', 'Turner', 'bturner29@baidu.com', 'Philippines', '46.164.52.154', 1, FALSE, '2014-12-19T22:31:15Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (83, '7932efdd-067b-4418-83e9-725af9d63d36', 'Anne', 'Baker', 'abaker2a@elegantthemes.com', 'Poland', '237.166.133.250', 1, TRUE, '2014-10-11T11:09:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (84, '7932efdd-067b-4418-84e9-725af9d63d36', 'Frances', 'Olson', 'folson2b@yolasite.com', 'Russia', '160.188.69.224', 0, TRUE, '2014-11-10T02:40:20Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (85, '7932efdd-067b-4418-85e9-725af9d63d36', 'Laura', 'Bell', 'lbell2c@jimdo.com', 'Poland', '229.185.230.11', 0, FALSE, '2014-06-23T13:28:43Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (86, '7932efdd-067b-4418-86e9-725af9d63d36', 'Arthur', 'Jordan', 'ajordan2d@pbs.org', 'China', '191.209.4.196', 1, TRUE, '2015-04-29T00:05:01Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (87, '7932efdd-067b-4418-87e9-725af9d63d36', 'Ernest', 'Banks', 'ebanks2e@behance.net', 'Indonesia', '144.189.217.63', 0, TRUE, '2014-10-06T02:47:24Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (88, '7932efdd-067b-4418-88e9-725af9d63d36', 'Sandra', 'Knight', 'sknight2f@cmu.edu', 'Russia', '181.78.102.125', 1, FALSE, '2014-07-01T05:19:41Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (89, '7932efdd-067b-4418-89e9-725af9d63d36', 'Marilyn', 'Shaw', 'mshaw2g@w3.org', 'Indonesia', '142.103.108.211', 1, TRUE, '2014-11-09T18:37:42Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (90, '7932efdd-067b-4418-90e9-725af9d63d36', 'Stephanie', 'Crawford', 'scrawford2h@abc.net.au', 'China', '134.116.13.20', 0, TRUE, '2014-06-06T20:46:22Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (91, '7932efdd-067b-4418-91e9-725af9d63d36', 'Karen', 'Morales', 'kmorales2i@yellowpages.com', 'Finland', '116.20.58.162', 0, TRUE, '2014-05-17T15:41:11Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (92, '7932efdd-067b-4418-92e9-725af9d63d36', 'Terry', 'Willis', 'twillis2j@eepurl.com', 'China', '189.23.185.195', 1, TRUE, '2014-11-22T02:28:35Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (93, '7932efdd-067b-4418-93e9-725af9d63d36', 'Ryan', 'Lawrence', 'rlawrence2k@tinypic.com', 'Indonesia', '198.92.144.106', 0, TRUE, '2014-10-14T18:26:21Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (94, '7932efdd-067b-4418-94e9-725af9d63d36', 'Jacqueline', 'Phillips', 'jphillips2l@artisteer.com', 'Brazil', '148.173.248.249', 0, TRUE, '2014-09-03T03:39:12Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (95, '7932efdd-067b-4418-95e9-725af9d63d36', 'Bonnie', 'Willis', 'bwillis2m@forbes.com', 'Indonesia', '28.170.46.109', 0, FALSE, '2014-09-19T05:03:06Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (96, '7932efdd-067b-4418-96e9-725af9d63d36', 'Victor', 'Ward', 'vward2n@1688.com', 'China', '43.32.33.88', 0, FALSE, '2014-11-09T21:17:53Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (97, '7932efdd-067b-4418-97e9-725af9d63d36', 'Jack', 'Holmes', 'jholmes2o@cnet.com', 'Pakistan', '165.201.62.239', 1, FALSE, '2014-05-21T02:24:10Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (98, '7932efdd-067b-4418-98e9-725af9d63d36', 'Patrick', 'Willis', 'pwillis2p@pbs.org', 'Colombia', '106.33.124.211', 0, FALSE, '2014-12-20T19:28:38Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (99, '7932efdd-067b-4418-99e9-725af9d63d36', 'Shirley', 'Warren', 'swarren2q@blogger.com', 'Nigeria', '86.48.161.126', 0, FALSE, '2014-11-10T04:19:46Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); +insert into users (id, uuid, firstname, lastname, email, country, ip_address, role, confirmed, createdAt, score, birth_date, registration_date, registration_time) values (100, '7932efdd-067b-4418-1009-725af9d63d36', 'Jonathan', 'Hall', 'jhall2r@lycos.com', 'China', '40.240.80.91', 0, FALSE, '2014-07-23T08:47:02Z', 15.7, '2015-04-29', '2015-04-30T04:20:11Z', '04:20:11'); insert into projects (id, name, description, status, user_id) values (1, 'Crimson', 'In hac habitasse platea dictumst. Morbi vestibulum, velit id pretium iaculis, diam erat fermentum justo, nec condimentum neque sapien placerat ante. Nulla justo.', 0, 15); insert into projects (id, name, description, status, user_id) values (2, 'Blue', 'Cras non velit nec nisi vulputate nonummy. Maecenas tincidunt lacus at velit. Vivamus vel nulla eget eros elementum pellentesque. Quisque porta volutpat erat. ', 1, 14); From a50f56b9e34e43158c90d603db2e9515329f73dd Mon Sep 17 00:00:00 2001 From: Benjamin Kastelic Date: Sun, 21 Nov 2021 16:11:07 +0100 Subject: [PATCH 2/2] downgraded h2 version due to a bug --- .../kumuluz/ee/rest/utils/StreamUtils.java | 37 +++++++++++++++++-- .../kumuluz/ee/rest/test/entities/User.java | 2 +- pom.xml | 2 +- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/kumuluz/ee/rest/utils/StreamUtils.java b/core/src/main/java/com/kumuluz/ee/rest/utils/StreamUtils.java index d3ebbc5..65a22fe 100644 --- a/core/src/main/java/com/kumuluz/ee/rest/utils/StreamUtils.java +++ b/core/src/main/java/com/kumuluz/ee/rest/utils/StreamUtils.java @@ -33,10 +33,7 @@ import java.lang.reflect.Field; import java.math.BigDecimal; -import java.time.Instant; -import java.time.LocalDate; -import java.time.LocalDateTime; -import java.time.ZoneId; +import java.time.*; import java.util.*; import java.util.function.Function; import java.util.function.Predicate; @@ -389,6 +386,8 @@ private static StreamCriteriaWhereQuery createWhereQueryInternal(Class clazz, if (Date.class.isAssignableFrom(clazzTarget) || Instant.class.isAssignableFrom(clazzTarget) || Number.class.isAssignableFrom(clazzTarget) || + LocalTime.class.isAssignableFrom(clazz) || + OffsetTime.class.isAssignableFrom(clazz) || LocalDate.class.isAssignableFrom(clazzTarget) || LocalDateTime.class.isAssignableFrom(clazzTarget) || String.class.isAssignableFrom(clazzTarget)) { @@ -404,6 +403,8 @@ private static StreamCriteriaWhereQuery createWhereQueryInternal(Class clazz, if (Date.class.isAssignableFrom(clazzTarget) || Instant.class.isAssignableFrom(clazzTarget) || Number.class.isAssignableFrom(clazzTarget) || + LocalTime.class.isAssignableFrom(clazz) || + OffsetTime.class.isAssignableFrom(clazz) || LocalDate.class.isAssignableFrom(clazzTarget) || LocalDateTime.class.isAssignableFrom(clazzTarget) || String.class.isAssignableFrom(clazzTarget)) { @@ -419,6 +420,8 @@ private static StreamCriteriaWhereQuery createWhereQueryInternal(Class clazz, if (Date.class.isAssignableFrom(clazzTarget) || Instant.class.isAssignableFrom(clazzTarget) || Number.class.isAssignableFrom(clazzTarget) || + LocalTime.class.isAssignableFrom(clazz) || + OffsetTime.class.isAssignableFrom(clazz) || LocalDate.class.isAssignableFrom(clazzTarget) || LocalDateTime.class.isAssignableFrom(clazzTarget) || String.class.isAssignableFrom(clazzTarget)) { @@ -434,6 +437,8 @@ private static StreamCriteriaWhereQuery createWhereQueryInternal(Class clazz, if (Date.class.isAssignableFrom(clazzTarget) || Instant.class.isAssignableFrom(clazzTarget) || Number.class.isAssignableFrom(clazzTarget) || + LocalTime.class.isAssignableFrom(clazz) || + OffsetTime.class.isAssignableFrom(clazz) || LocalDate.class.isAssignableFrom(clazzTarget) || LocalDateTime.class.isAssignableFrom(clazzTarget) || String.class.isAssignableFrom(clazzTarget)) { @@ -560,6 +565,10 @@ private static Predicate filter(Class clazz, String fieldName, Object return value.equals(fieldValue); } else if (value instanceof BigDecimal) { return value.equals(new BigDecimal((String) fieldValue)); + } else if (value instanceof LocalTime) { + return value.equals((LocalTime) fieldValue); + } else if (value instanceof OffsetTime) { + return value.equals((OffsetTime) fieldValue); } else if (value instanceof LocalDate) { return value.equals((LocalDate) fieldValue); } else if (value instanceof LocalDateTime) { @@ -624,6 +633,10 @@ private static Predicate filter(Class clazz, String fieldName, Object return !value.equals(Float.parseFloat((String) fieldValue)); } else if (value instanceof Long) { return !value.equals(Long.parseLong((String) fieldValue)); + } else if (value instanceof LocalTime) { + return !value.equals((LocalTime) fieldValue); + } else if (value instanceof OffsetTime) { + return !value.equals((OffsetTime) fieldValue); } else if (value instanceof LocalDate) { return !value.equals((LocalDate) fieldValue); } else if (value instanceof LocalDateTime) { @@ -771,6 +784,10 @@ private static Predicate filter(Class clazz, String fieldName, Object return ((Long) value).compareTo(Long.parseLong((String) fieldValue)) > 0; } else if (value instanceof Boolean) { return ((Boolean) value).compareTo((Boolean) fieldValue) > 0; + } else if (value instanceof LocalTime) { + return ((LocalTime) value).compareTo((LocalTime) fieldValue) > 0; + } else if (value instanceof OffsetTime) { + return ((OffsetTime) value).compareTo((OffsetTime) fieldValue) > 0; } else if (value instanceof LocalDate) { return ((LocalDate) value).compareTo((LocalDate) fieldValue) > 0; } else if (value instanceof LocalDateTime) { @@ -806,6 +823,10 @@ private static Predicate filter(Class clazz, String fieldName, Object return ((Long) value).compareTo(Long.parseLong((String) fieldValue)) >= 0; } else if (value instanceof Boolean) { return ((Boolean) value).compareTo((Boolean) fieldValue) >= 0; + } else if (value instanceof LocalTime) { + return ((LocalTime) value).compareTo((LocalTime) fieldValue) >= 0; + } else if (value instanceof OffsetTime) { + return ((OffsetTime) value).compareTo((OffsetTime) fieldValue) >= 0; } else if (value instanceof LocalDate) { return ((LocalDate) value).compareTo((LocalDate) fieldValue) >= 0; } else if (value instanceof LocalDateTime) { @@ -842,6 +863,10 @@ private static Predicate filter(Class clazz, String fieldName, Object return ((Long) value).compareTo(Long.parseLong((String) fieldValue)) < 0; } else if (value instanceof Boolean) { return ((Boolean) value).compareTo((Boolean) fieldValue) < 0; + } else if (value instanceof LocalTime) { + return ((LocalTime) value).compareTo((LocalTime) fieldValue) >= 0; + } else if (value instanceof OffsetTime) { + return ((OffsetTime) value).compareTo((OffsetTime) fieldValue) >= 0; } else if (value instanceof LocalDate) { return ((LocalDate) value).compareTo((LocalDate) fieldValue) < 0; } else if (value instanceof LocalDateTime) { @@ -879,6 +904,10 @@ private static Predicate filter(Class clazz, String fieldName, Object return ((Long) value).compareTo(Long.parseLong((String) fieldValue)) <= 0; } else if (value instanceof Boolean) { return ((Boolean) value).compareTo((Boolean) fieldValue) <= 0; + } else if (value instanceof LocalTime) { + return ((LocalTime) value).compareTo((LocalTime) fieldValue) >= 0; + } else if (value instanceof OffsetTime) { + return ((OffsetTime) value).compareTo((OffsetTime) fieldValue) >= 0; } else if (value instanceof LocalDate) { return ((LocalDate) value).compareTo((LocalDate) fieldValue) <= 0; } else if (value instanceof LocalDateTime) { diff --git a/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java b/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java index 4ac122b..8cce628 100644 --- a/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java +++ b/core/src/test/java/com/kumuluz/ee/rest/test/entities/User.java @@ -55,7 +55,7 @@ public class User implements Comparable, Serializable { @Temporal(TemporalType.TIMESTAMP) private Date createdAt; - @OneToMany(mappedBy = "user") + @OneToMany(mappedBy = "user", fetch = FetchType.EAGER) private List projects; private UserStatus status; diff --git a/pom.xml b/pom.xml index 66744fc..422f91f 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ 1.3.1 4.13.1 - 1.4.200 + 1.4.199 2.7.8 5.4.26.Final