Davide D'Alto (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDA2Nzc4ODJm...
) / New Feature (
https://hibernate.atlassian.net/browse/HHH-16260?atlOrigin=eyJpIjoiZDA2Nz...
) HHH-16260 (
https://hibernate.atlassian.net/browse/HHH-16260?atlOrigin=eyJpIjoiZDA2Nz...
) JdbcParameterRenderer not called with dynamic filters (
https://hibernate.atlassian.net/browse/HHH-16260?atlOrigin=eyJpIjoiZDA2Nz...
)
Change By: Davide D'Alto (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Example of mapping that skips the JdbcParameterRenderer:
{code:java} @FilterDef(name = "current", defaultCondition = "deleted =
false")
@FilterDef(name = "region", defaultCondition = "region = :region",
parameters = @ParamDef(name = "region", type =
org.hibernate.type.descriptor.java.StringJavaType.class))
@Entity(name = "Element")
@Table(name = "Element")
@Filter(name = "current")
@Filter(name = "region")
public static class Element {
...
}{code}
A test class is availble on my repository:
[
https://github.com/DavideD/hibernate-orm/blob/filterTest/hibernate-core/s...]
It’s possible to see in
[
FilterHelper|https://github.com/hibernate/hibernate-orm/blob/main/hiberna...]
that the renderer is never called when parameters are required.
(
https://hibernate.atlassian.net/browse/HHH-16260#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16260#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:45db922 )