title: How to fix "is in unnamed module of loader 'app';" with hibernate.load
body: <p>I'm getting the following error after i try to load an entity by id in hibernate</p>
  
  <pre><code>Course is in unnamed module of loader 'app';
  </code></pre>
  
  <p>here is an example of my hibernate load code: </p>
  
  <pre><code> Course temp = (Course) currentSession.load(Course.class, cid);
  </code></pre>
  
  <p>P.S: i have thymeleaf and java 11 if that matters</p>
  
  <p>Important : I am using spring-boot-devtools 
  If i remove devtools from maven everything works fine</p>