Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15772 (
https://hibernate.atlassian.net/browse/HHH-15772?atlOrigin=eyJpIjoiOTg5MW...
)
Re: deprecate @Target, @Proxy, @Polymorphism (
https://hibernate.atlassian.net/browse/HHH-15772?atlOrigin=eyJpIjoiOTg5MW...
)
Yeah, right, so that’s exactly the legit usecase from @Proxy , but if we are going to
revive the annotation for this usecase, then I would redesign it so that you could just
write:
@Entity @Proxy(MyInterface.class)
class MyEntity implements MyInterface {
...
}
But really, it just all seems a bit silly to me! The easiest solution for you guys is to
just remove those final annotations, as required by the JPA spec:
The entity class must not be final. No methods or persistent instance
variables of the entity class may be final.
and then there’s no reason for futzing about with specifying the proxy type explicitly.
That’s the way Hibernate’s supposed to be used. Why make your own life more difficult? Why
tie yourself in knots over nothing?
(
https://hibernate.atlassian.net/browse/HHH-15772#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15772#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#100234- sha1:ac1edd4 )