branch develop updated (b9eb71c3 -> c8a77aaa)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository topia. See https://gitlab.nuiton.org/nuiton/topia.git from b9eb71c3 Update commons-collections4 to 4.3 new c8a77aaa Allow passing java8 date and time as HQL arguments The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit c8a77aaabc552743c569ebd7a5979a63f2e7608f Author: Brendan Le Ny <bleny@codelutin.com> Date: Thu Jun 20 14:51:12 2019 +0200 Allow passing java8 date and time as HQL arguments Summary of changes: .../topia/persistence/HqlAndParametersBuilder.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository topia. See https://gitlab.nuiton.org/nuiton/topia.git commit c8a77aaabc552743c569ebd7a5979a63f2e7608f Author: Brendan Le Ny <bleny@codelutin.com> Date: Thu Jun 20 14:51:12 2019 +0200 Allow passing java8 date and time as HQL arguments --- .../topia/persistence/HqlAndParametersBuilder.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/topia-persistence/src/main/java/org/nuiton/topia/persistence/HqlAndParametersBuilder.java b/topia-persistence/src/main/java/org/nuiton/topia/persistence/HqlAndParametersBuilder.java index 9f51c3f1..af8de204 100644 --- a/topia-persistence/src/main/java/org/nuiton/topia/persistence/HqlAndParametersBuilder.java +++ b/topia-persistence/src/main/java/org/nuiton/topia/persistence/HqlAndParametersBuilder.java @@ -40,6 +40,8 @@ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.text.WordUtils; import org.nuiton.util.pagination.PaginationOrder; +import java.time.LocalDate; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.Collection; import java.util.Date; @@ -372,6 +374,38 @@ public class HqlAndParametersBuilder<E extends TopiaEntity> { doAddGreaterOrEquals(property, string); } + public void addLowerThan(String property, LocalDate localDate) { + doAddLowerThan(property, localDate); + } + + public void addLowerOrEquals(String property, LocalDate localDate) { + doAddLowerOrEquals(property, localDate); + } + + public void addGreaterThan(String property, LocalDate localDate) { + doAddGreaterThan(property, localDate); + } + + public void addGreaterOrEquals(String property, LocalDate localDate) { + doAddGreaterOrEquals(property, localDate); + } + + public void addLowerThan(String property, LocalDateTime localDateTime) { + doAddLowerThan(property, localDateTime); + } + + public void addLowerOrEquals(String property, LocalDateTime localDateTime) { + doAddLowerOrEquals(property, localDateTime); + } + + public void addGreaterThan(String property, LocalDateTime localDateTime) { + doAddGreaterThan(property, localDateTime); + } + + public void addGreaterOrEquals(String property, LocalDateTime localDateTime) { + doAddGreaterOrEquals(property, localDateTime); + } + protected void doAddLowerThan(String property, Object value) { Preconditions.checkNotNull(value); String hqlParameterName = putHqlParameterWithAvailableName(property, value); -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm