Change `@ParamDef#type` associated with a `@FilterDef` from `String` to `Class` in keeping with the general move away from String-based type usage in annotations

This commit is contained in:
Steve Ebersole 2022-01-24 14:58:10 -06:00
parent 973c052c8c
commit 4c0824d74d
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ import org.hibernate.annotations.FilterDefs;
import org.hibernate.annotations.Filters;
import org.hibernate.annotations.ParamDef;
import org.hibernate.query.Query;
import org.hibernate.type.YesNoConverter;
import org.hibernate.type.NumericBooleanConverter;
import org.hibernate.testing.orm.junit.DomainModel;
import org.hibernate.testing.orm.junit.SessionFactory;
@ -102,7 +102,7 @@ public class OneToManyWithDynamicFilterTest {
name = "aliveOnly",
parameters = {
@ParamDef(name = "aliveTimestamp", type = Timestamp.class),
@ParamDef(name = "deleted", type = YesNoConverter.class)
@ParamDef(name = "deleted", type = NumericBooleanConverter.class)
},
defaultCondition = "DELETION_TIMESTAMP = :aliveTimestamp and DELETED = :deleted")
})