mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-19 21:00:53 +08:00
Add test for enum eq
This commit is contained in:
parent
961e640662
commit
986b38be7f
@ -560,6 +560,12 @@ public abstract class AbstractJPATest {
|
||||
assertEquals(1, query().from(cat).where(cat.name.endsWith("_123")).count());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Enum_Eq() {
|
||||
assertEquals(1, query().from(company).where(company.ratingOrdinal.eq(Rating.A)).count());
|
||||
assertEquals(1, query().from(company).where(company.ratingString.eq(Rating.AA)).count());
|
||||
}
|
||||
|
||||
@Test
|
||||
@NoBatooJPA
|
||||
public void Enum_in() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user