mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Merge branch 'NewDatastore' of https://github.com/jbk5988/spring-petclinic into NewDatastore
This commit is contained in:
commit
359e2cfa19
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ public class NewOwnerStore {
|
||||||
if(iterator.hasNext()) {
|
if(iterator.hasNext()) {
|
||||||
Owner oldOwner = iterator.next();
|
Owner oldOwner = iterator.next();
|
||||||
if(id != oldOwner.getId() || !ownerStore.get(id).equals(oldOwner)) {
|
if(id != oldOwner.getId() || !ownerStore.get(id).equals(oldOwner)) {
|
||||||
|
ownerStore.put(id, convertToStaticOwner(oldOwner);
|
||||||
inconsistencies++;
|
inconsistencies++;
|
||||||
violation(id, StaticOwner.convertToStaticOwner(oldOwner), ownerStore.get(id));
|
violation(id, StaticOwner.convertToStaticOwner(oldOwner), ownerStore.get(id));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue