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

View File

@ -27,7 +27,7 @@
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 @@ void testForIssue(SessionFactoryScope scope) {
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")
})