Oleksii Miroshnyk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a157d9...
) *commented* on HHH-16581 (
https://hibernate.atlassian.net/browse/HHH-16581?atlOrigin=eyJpIjoiYWU4M2...
)
Re: in 6.2 I start getting Multiple '@FilterDef' annotations define a filter named
error on startup (
https://hibernate.atlassian.net/browse/HHH-16581?atlOrigin=eyJpIjoiYWU4M2...
)
>There should be exactly one definition of every filter.
I would agree, but the thing is that hibernate is pretty widely used and it is here for a
while, and with such kind of drastic change an effort of maintaining & upgrading
legacy applications increases significantly.
Not saying that idea of defining something in ONE class/entity that is applied across ALL
entities is not that straightforward, so I don’t see nothing bad if it will be
“duplicated”.
The better idea would be probably to move filter definition to some more distinct place
like some config xml or any other place that is considered as a singleton per persistence
unit, but with the current design I would vote to follow the approach that was there from
the very beginning.
(
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#100227- sha1:8ffa416 )