且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

重复输入使用GoogleAuthorizationCodeFlow与JdoCredentialStore和DataNucleus的异常

更新时间:2023-11-17 18:56:52

刷新你可能意味着坚持,因为那是你在做什么。而且它仍然存在与现有的相同的id。如果您打算更新它,那么您检索它并进行更新,并在数据存储区中进行更新。如果这是一些Google lib在幕后的持久性,那么请问他们的API在哪里是一个更新调用。

By "refresh" you presumably mean "persist", since that is what you're doing. And it's persisting one with the same "id" as an existent one. If you meant to update it then you retrieve it and update it and it gets updated in datastore. If this is some Google lib doing the persistence behind the scenes then ask them where in their API is an "update" call possible.