mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Refactor: Fix Raw use of parameterized class 'Where'
This commit is contained in:
parent
fdcc4e4458
commit
b1f254bdc3
1 changed files with 3 additions and 3 deletions
|
@ -206,7 +206,7 @@ public enum CardRepository {
|
||||||
try {
|
try {
|
||||||
QueryBuilder<CardInfo, Object> qb = cardDao.queryBuilder();
|
QueryBuilder<CardInfo, Object> qb = cardDao.queryBuilder();
|
||||||
qb.distinct().selectColumns("name", "modalDoubleFacesSecondSideName", "secondSideName", "flipCardName");
|
qb.distinct().selectColumns("name", "modalDoubleFacesSecondSideName", "secondSideName", "flipCardName");
|
||||||
Where where = qb.where();
|
Where<CardInfo, Object> where = qb.where();
|
||||||
where.and(
|
where.and(
|
||||||
where.not().like("supertypes", '%' + SuperType.BASIC.name() + '%'),
|
where.not().like("supertypes", '%' + SuperType.BASIC.name() + '%'),
|
||||||
where.like("types", '%' + CardType.LAND.name() + '%')
|
where.like("types", '%' + CardType.LAND.name() + '%')
|
||||||
|
@ -278,7 +278,7 @@ public enum CardRepository {
|
||||||
try {
|
try {
|
||||||
QueryBuilder<CardInfo, Object> qb = cardDao.queryBuilder();
|
QueryBuilder<CardInfo, Object> qb = cardDao.queryBuilder();
|
||||||
qb.distinct().selectColumns("name", "modalDoubleFacesSecondSideName", "secondSideName", "flipCardName");
|
qb.distinct().selectColumns("name", "modalDoubleFacesSecondSideName", "secondSideName", "flipCardName");
|
||||||
Where where = qb.where();
|
Where<CardInfo, Object> where = qb.where();
|
||||||
where.and(
|
where.and(
|
||||||
where.not().like("types", '%' + CardType.CREATURE.name() + '%'),
|
where.not().like("types", '%' + CardType.CREATURE.name() + '%'),
|
||||||
where.not().like("types", '%' + CardType.LAND.name() + '%')
|
where.not().like("types", '%' + CardType.LAND.name() + '%')
|
||||||
|
@ -298,7 +298,7 @@ public enum CardRepository {
|
||||||
try {
|
try {
|
||||||
QueryBuilder<CardInfo, Object> qb = cardDao.queryBuilder();
|
QueryBuilder<CardInfo, Object> qb = cardDao.queryBuilder();
|
||||||
qb.distinct().selectColumns("name", "modalDoubleFacesSecondSideName", "secondSideName", "flipCardName");
|
qb.distinct().selectColumns("name", "modalDoubleFacesSecondSideName", "secondSideName", "flipCardName");
|
||||||
Where where = qb.where();
|
Where<CardInfo, Object> where = qb.where();
|
||||||
where.and(
|
where.and(
|
||||||
where.not().like("types", '%' + CardType.ARTIFACT.name() + '%'),
|
where.not().like("types", '%' + CardType.ARTIFACT.name() + '%'),
|
||||||
where.not().like("types", '%' + CardType.LAND.name() + '%')
|
where.not().like("types", '%' + CardType.LAND.name() + '%')
|
||||||
|
|
Loading…
Reference in a new issue