The moose likes Object Relational Mapping and the fly likes How to specify a conditional new value in JPA bulk update Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "How to specify a conditional new value in JPA bulk update" Watch "How to specify a conditional new value in JPA bulk update" New topic
Author

How to specify a conditional new value in JPA bulk update

Stephen Suen
Ranch Hand

Joined: Oct 30, 2003
Posts: 34
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

This message was edited 1 time. Last update was at by Stephen Suen

 
 
subject: How to specify a conditional new value in JPA bulk update
 
developer file tools