I tried update(Object)
, update(PreparedUpdate)
, executeRaw(String)
, updateRaw(String)
, and even tried directly using the helper class then using getData(String query)
. But my table's foreign field is still not updated. Any thoughts why this is happening?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I found out that I am using the method update(Object)
on other methods while passing an outdated instance of the object I am trying to update. So once I use the actual update(PreparedUpdate)
method, I am reverting the object back to its original state as some other method is using update(outdated Object)