Oleksii Miroshnyk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a157d9...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjQ1NzBkMDdk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16581?atlOrigin=eyJpIjoiYjQ1Nz...
) HHH-16581 (
https://hibernate.atlassian.net/browse/HHH-16581?atlOrigin=eyJpIjoiYjQ1Nz...
) in 6.2 I start getting Multiple '@FilterDef' annotations define a filter named
error on startup (
https://hibernate.atlassian.net/browse/HHH-16581?atlOrigin=eyJpIjoiYjQ1Nz...
)
Issue Type: Bug Assignee: Unassigned Created: 10/May/2023 08:38 AM Environment: Seems
there is a change that breaks backward compatibility...
I have some entity classes preprocessing that dynamically adds filter defs annotation
based on some conditions
So it can happen that entity A will have filterDefs filterA and FilterB and entity B will
have filterDef filterA
It was working in hibernate version 3-5 and in 6.1.7 in 6.2.2 it gives me an error.
Can you please revert that condition or outline a context for filterDefs is it class(seems
not), package, persistent unit ? I have 4 persistent units.. and a single instance of
class transformer that intercepts class loading and it doesn't know anything about
persistent unit that class belongs :(
And maybe update docs as I didn't find any information about this requirement and some
motivation of why it was added
Priority: Major Reporter: Oleksii Miroshnyk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a157d9...
)
(
https://hibernate.atlassian.net/browse/HHH-16581#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16581#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#100225- sha1:55ea0c5 )