[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
Author

How to specify a conditional new value in JPA bulk update

Stephen Suen
Ranch Hand

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

 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic