mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
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.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")
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user