update account set lastusedval=lastusedval+1 where isactive=1 returning
lastusedval;
How to execute above query in java? when i tried to execute in oracle its working but in java hibernate/jpa no way to store return value in update query.
By executing above query intention is to apply lock on db level when more than 1 request comes