RE: Liferay-7 unable to retrieve upadted database value in inner methods

Raj P, modified 7 Years ago. New Member Posts: 3 Join Date: 2/8/17 Recent Posts

Following is our method structure

TestLocalServiceImpl.java

public String deleteUploadedData(){

       testFinder.update(id);

       sendEmail();

}

We are updating one column with the corresponding primary key at line -- testFinder.update(id)

And we are trying to retrieve the updated value in sendEmail() method. But we are getting old value instead of new.

Can anybody tell how to retrieve the updated value.

thumbnail
Sushil Patidar, modified 7 Years ago. Expert Posts: 467 Join Date: 10/31/11 Recent Posts

Hi,

 

Can you give more details about the case. From the above it looks ambiguous as your method is for delete and you are updating value.

 

Regards