title: Java Spring exception: No property xxx found for type class xxx
body: <p>I wanted to add a new repository method, to retrieve a list of elements.</p>
  
  <p>Main Problem is: </p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'insulinGTService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private xxx.xxx.xxx.repository.InsulinGTRepository xxx.xxx.xxx.service.jpa.InsulinGTServiceImpl.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'insulinGTRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: No property storelistfromcontainer found for type class xxx.xxx.xxx.domain.InsulinGT
  </code></pre>
  
  <p>I kinda worked out, that it can't autowire the <strong>repository</strong> in <strong>InsulinGTServiceImpl</strong>, if you follow the error, you end up in the <strong>InsulinGTRepository</strong> with the error you can see beyond.</p>
  
  <p><strong>InsulinGTServiceImpl</strong></p>
  
  <pre><code>    @Service("insulinGTService")
      @Repository
      @Transactional
      public class InsulinGTServiceImpl implements InsulinGTService {
  
      @Autowired
      private InsulinGTRepository repository;
  
      @Override
      @Transactional(readOnly = true)
      public List&lt;InsulinGT&gt; findByID(Long insulinid) {
          // TODO Auto-generated method stub
          return Lists.newArrayList(repository.findByUserid(insulinid));
      }
  
      @Override
      public InsulinGT save(InsulinGT insulin) {
          return repository.save(insulin);
      }
  
  
  
      @Override
      public List&lt;InsulinGT&gt; liststorelistfromcontainerSave(InsulinlistGT insulin) {
          // TODO Auto-generated method stub
          return repository.storelistfromcontainer(insulin);
      }
  
  
  
  }
  </code></pre>
  
  <p><strong>InsulinGTService</strong></p>
  
  <pre><code>public interface InsulinGTService {
  
      public List&lt;InsulinGT&gt; findByID(Long insulinid);
      public InsulinGT save(InsulinGT insulin);
      public List&lt;InsulinGT&gt; storelistfromcontainerSave(InsulinlistGT insulin);
  
  }
  </code></pre>
  
  <p>In the <strong>InsulinGTRepository</strong> spring says, <strong>Invalid derived query! No property storelistfromcontainer found for type InsulinGT!</strong></p>
  
  <pre><code>public interface InsulinGTRepository extends CrudRepository&lt;InsulinGT, Long&gt; {
  
  
      public List&lt;InsulinGT&gt; findByUserid (Long id);
      public List&lt;InsulinGT&gt; storelistfromcontainer(InsulinlistGT insulin);
  }
  </code></pre>
  
  <p><strong>InsulinGT</strong></p>
  
  <pre><code>@Entity
  @Table(name = "insulin")
  public class InsulinGT implements Serializable {                    
          private static final long serialVersionUID = 3333976984277807655L;
          private Long insulinid;
          private Long userid;
          private String ivalue;
          private String therapie;
          private String insulinname;
          private String einheit;
          private Date date;
          private Date time;
  
          @Id
          @GeneratedValue(strategy = IDENTITY)
          @Column(name = "insulin_id")
          public Long getInsulinid() {
              return insulinid;
          }
  
          public void setInsulinid(Long insulinid) {
              this.insulinid = insulinid;
          }
  
          @Column(name = "users_id")
          public Long getUserid() {
              return userid;
          }
  
          public void setUserid(Long userid) {
              this.userid = userid;
          }
  
          @NotNull    
          @Column(name = "ivalue")
          public String getIvalue() {
              return ivalue;
          }
  
          public void setIvalue(String ivalue) {
              this.ivalue = ivalue;
          }
  
  
          @Column(name = "date")
          public Date getDate() {
              return date;
          }
  
          public void setDate(Date date) {
              this.date = date;
          }
  
  
          @Column(name = "time")
          public Date getTime() {
              return time;
          }
  
          public void setTime(Date time) {
              this.time = time;
          }
  
          @Column (name = "therapie")
          public String getTherapie() {
              return therapie;
          }
  
  
          public void setTherapie(String therapie) {
              this.therapie = therapie;
          }
  
          @Column(name = "insulinname")
          public String getInsulinname() {
              return insulinname;
          }
  
          public void setInsulinname(String insulinname) {
              this.insulinname = insulinname;
          }
  
          @Column(name = "einheit" )
          public String getEinheit() {
              return einheit;
          }
  
          public void setEinheit(String einheit) {
              this.einheit = einheit;
          }
  
  }
  </code></pre>
  
  <p>I alredy tried out renaming the classes, but nothing helped. The old version without the new added method is working fine without any problem.
  Every help is appreciated.</p>