force id consistency
parent
8876217baf
commit
bc0ee4cbab
|
@ -83,6 +83,9 @@ public class JpaOAuth2ClientRepository implements OAuth2ClientRepository {
|
|||
|
||||
@Override
|
||||
public ClientDetailsEntity updateClient(Long id, ClientDetailsEntity client) {
|
||||
// sanity check
|
||||
client.setId(id);
|
||||
|
||||
return JpaUtil.saveOrUpdate(id, manager, client);
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,9 @@ public class JpaWhitelistedSiteRepository implements WhitelistedSiteRepository {
|
|||
@Override
|
||||
@Transactional
|
||||
public WhitelistedSite update(WhitelistedSite oldWhitelistedSite, WhitelistedSite whitelistedSite) {
|
||||
// sanity check
|
||||
whitelistedSite.setId(oldWhitelistedSite.getId());
|
||||
|
||||
return saveOrUpdate(oldWhitelistedSite.getId(), manager, whitelistedSite);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue