title: Spring Data JPA NamedStoredProcedureQuery Multiple Out Parameters
body: <p>I have a simple stored procedure I'm using to test out Spring Data JPA Stored Procedure feature.</p>
  
  <pre><code>create or replace procedure plus1inout (arg in int,res1 out int,res2 out int) is
  BEGIN   
   res1 := arg + 1; 
   res2 := res1 + 1;
  END;
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>@Repository
  public interface AdjudConverDateSPRepository extends JpaRepository&lt;AdjudConverDateSP, Long&gt; {
      @Procedure(name = "plus1")
      Object[] plus1(@Param("arg") Integer arg);
  }
  
  @Entity
  @NamedStoredProcedureQuery(name = "plus1", procedureName = "ADJUD.PLUS1INOUT",
          parameters = {
          @StoredProcedureParameter(mode = ParameterMode.IN, name = "arg", type = Integer.class),
          @StoredProcedureParameter(mode = ParameterMode.OUT, name = "res1", type = Integer.class),
          @StoredProcedureParameter(mode = ParameterMode.OUT, name = "res2", type = Integer.class)
  })
  public class AdjudConverDateSP implements Serializable {
          //stub to satisfy hibernate identifier requirement
          @Id @GeneratedValue
          private Long id;
  
  }
  </code></pre>
  
  <p>Everything works fine when I have a single OUT parameter. But once I add a second OUT parameter I get an exception saying it can't find the procedure in the entity.</p>
  
  <pre><code>Caused by:
    org.springframework.data.mapping.PropertyReferenceException: No property plus1 found for type AdjudConverDateSP!  at
    org.springframework.data.mapping.PropertyPath.&lt;init&gt;(PropertyPath.java:75) at 
    org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:327) at
    org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:307) at
    org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:270) at
    org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:241) at
    org.springframework.data.repository.query.parser.Part.&lt;init&gt;(Part.java:76) at
    org.springframework.data.repository.query.parser.PartTree$OrPart.&lt;init&gt;(PartTree.java:235) at
    org.springframework.data.repository.query.parser.PartTree$Predicate.buildTree(PartTree.java:373) at
    org.springframework.data.repository.query.parser.PartTree$Predicate.&lt;init&gt;(PartTree.java:353)
  </code></pre>