Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay-7 unable to retrieve upadted database value in inner methods
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.
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
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™