Improve the exception message in the PojoInstantiator class if the class is abstract #7521
Replies: 1 comment
-
This is not the place to ask question. See #7522, #3767 and #4723 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When using
@Inheritance(strategy = InheritanceType.JOINED)
without mapping all subclasses tables in the application, Hibernate will try to instantiate the abstract class, which will not work and throw an exception.The following method is the one that throws the error (line 3).
The message is clear, but at the same time, it doesn't give enough insight about why it tries to instantiate an abstract class.
Can it give more hints like "Have you mapped all entities depending on this abstract class?" or something alike ?
Not to mention that enabling DEBUG mode didn't help neither.
This would avoid precious minutes of debugging 😄.
Beta Was this translation helpful? Give feedback.
All reactions