I'm getting the following error after i try to load an entity by id in hibernate
Course is in unnamed module of loader 'app';
here is an example of my hibernate load code:
Course temp = (Course) currentSession.load(Course.class, cid);
P.S: i have thymeleaf and java 11 if that matters
Important : I am using spring-boot-devtools If i remove devtools from maven everything works fine
I have got same issue, and find answer here - https://github.com/springdoc/springdoc-openapi/issues/386. If "Course" class nested in external .jar, you shold include this .jar to load by “restart” devtools classloader. How to do it describe here - https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using-boot-devtools-customizing-classload.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With