[JAVA-10597] Increased JOOQ version
This commit is contained in:
parent
fa47170025
commit
22d59b0193
|
@ -195,7 +195,7 @@
|
|||
</build>
|
||||
|
||||
<properties>
|
||||
<org.jooq.version>3.12.4</org.jooq.version>
|
||||
<org.jooq.version>3.14.15</org.jooq.version>
|
||||
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
|
||||
<sql-maven-plugin.version>1.5</sql-maven-plugin.version>
|
||||
<properties-maven-plugin.version>1.0.0</properties-maven-plugin.version>
|
||||
|
|
|
@ -2,8 +2,6 @@ package com.baeldung.jooq.introduction;
|
|||
|
||||
import static com.baeldung.jooq.introduction.db.public_.tables.Author.AUTHOR;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.DSLContext;
|
||||
|
@ -68,12 +66,7 @@ public class CountQueryIntegrationTest {
|
|||
|
||||
@Test
|
||||
public void givenValidData_whenFetchCountWithMultipleConditions_thenSucceed() {
|
||||
Condition firstCond = AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan");
|
||||
Condition secondCond = AUTHOR.ID.notEqual(1);
|
||||
List<Condition> conditions = new ArrayList<>();
|
||||
conditions.add(firstCond);
|
||||
conditions.add(secondCond);
|
||||
int count = dsl.fetchCount(AUTHOR, conditions);
|
||||
int count = dsl.fetchCount(AUTHOR, AUTHOR.FIRST_NAME.equalIgnoreCase("Bryan").and(AUTHOR.ID.notEqual(1)));
|
||||
Assert.assertEquals(1, count);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue