Interceptor and EntityTuplizer #3772
Replies: 6 comments 9 replies
-
I'd prefer option 1. I think Interceptor is a useful API. Not sure about |
Beta Was this translation helpful? Give feedback.
-
Ah, if it's already been deprecated for a long time then I agree. We should just remove it. |
Beta Was this translation helpful? Give feedback.
-
Everywhere I've simply changed Serializable to Object. I don't see any reason this should be different. |
Beta Was this translation helpful? Give feedback.
-
Very few people (that I know of) implement any tuplizer. Its not an exposed API so I'm not too worried about people calling it either. One of my pre-Beta tasks is to remove the older loading stuff and will take a look at removing tuplizers then. Interceptor is a bit different I agree. What I had done previously (that never got pushed as it was wrapped up in a PR that got too large) was to
IMO that's the best approach with Interceptor |
Beta Was this translation helpful? Give feedback.
-
So if #3770 gets integrated, all that remains is |
Beta Was this translation helpful? Give feedback.
-
OK,
This is now resolved. |
Beta Was this translation helpful? Give feedback.
-
Interceptor
is one of the truly most ancient APIs in Hibernate, and I'm almost surprised it hasn't been deprecated and replaced yet. I suppose it must still be useful.EntityTuplizer
is a deprecated interface, along with the rest of its hierarchy.Both these user-visible APIs have the same problem: identifiers are typed as
Serializable
.So what are we going to do with these things in 6?
Serializable
toObject
?default
methods that acceptObject
and deprecate the previous signatures?Interceptor
?Beta Was this translation helpful? Give feedback.
All reactions