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:
parent
973c052c8c
commit
4c0824d74d
|
@ -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")
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue