mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Add test for contains usage
This commit is contained in:
parent
ea2f0ce833
commit
2bad8e1925
@ -690,7 +690,18 @@ public abstract class AbstractStandardTest {
|
||||
@Test
|
||||
public void Contains3() {
|
||||
assertEquals(1l, query().from(cat).where(cat.name.contains("_")).count());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Contains4() {
|
||||
QEmployee employee = QEmployee.employee;
|
||||
query().from(employee)
|
||||
.where(
|
||||
employee.jobFunctions.contains(JobFunction.CODER),
|
||||
employee.jobFunctions.contains(JobFunction.CONSULTANT),
|
||||
employee.jobFunctions.size().eq(2))
|
||||
.list(employee);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Length() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user