title: Use Spring Data JPA, QueryDSL to update a bunch of records
body: <p>I'm refactoring a code base to get rid of SQL statements and primitive access and modernize with Spring Data JPA (backed by hibernate). I do use QueryDSL in the project for other uses.</p>
  
  <p>I have a scenario where the user can "mass update" a ton of records, and select some values that they want to update. In the old way, the code manually built the update statement with an IN statement for the where for the PK (which items to update), and also manually built the SET clauses (where the options in SET clauses can vary depending on what the user wants to update).</p>
  
  <p>In looking at QueryDSL documentation, it shows that it supports what I want to do. <a href="http://www.querydsl.com/static/querydsl/4.1.2/reference/html_single/#d0e399" rel="nofollow">http://www.querydsl.com/static/querydsl/4.1.2/reference/html_single/#d0e399</a></p>
  
  <p>I tried looking for a way to do this with Spring Data JPA, and haven't had any luck.  Is there a repostitory interface I'm missing, or another library that is required....or would I need to autowire a queryFactory into a custom repository implementation and very literally implement the code in the QueryDSL example?</p>