Extending Hibernate classes in the `internal` packages is always risky as the implementation can change from one release to the other. Since Hibernate 5.3, you don't even java a JavaDoc for the `internal` classes. Therefore, just like you can't extend `java.lang.String` to add your custom logic, you should not extend framework classes that are not meant to be extended. I'm closing this issue. If anyone from the Hibernate team thinks we should make this change, feel free to re-open it. |