Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to specify a conditional new value in JPA bulk update

 
Stephen Suen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm learning JPA. I wonder how to specify a conditional new value in a bulk update. For example:



With JPQL, I can only implement the above native query with two bulk update. Is there any way to do this in a single query?

Thanks for any help.

Stephen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic