title: Hibernate @Loader annotation
body: <p>I'm trying to use @Loader annotation in Hibernate. I wrote my own query in native SQL language to load my Entity the way I want (I want to cast one attribute).</p>
  
  <p>The problem is that I've got this error when running the script :</p>
  
  <pre><code>Expected positional parameter count: 1, actual parameters: []
  </code></pre>
  
  <p>And I'm trying to load the Entity through JPA call (findById) or Hibernate load.</p>
  
  <p>It looks like I didn't find the way to replace the question mark in my NamedNativeQuery, I thought Springdata would do it automatically.</p>
  
  <p>Does somebody have heard about that ?</p>
  
  <p>Thanks in advance,</p>
  
  <p>LDF</p>