File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture