|
1 | 1 | /*
|
2 |
| - * Copyright 2011-2014 the original author or authors. |
| 2 | + * Copyright 2011-2015 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -45,7 +45,7 @@ public class MongoChangeSetPersister implements ChangeSetPersister<Object> {
|
45 | 45 | private static final String ENTITY_FIELD_NAME = "_entity_field_name";
|
46 | 46 | private static final String ENTITY_FIELD_CLASS = "_entity_field_class";
|
47 | 47 |
|
48 |
| - private static final Logger log = LoggerFactory.getLogger(getClass()); |
| 48 | + private final Logger log = LoggerFactory.getLogger(getClass()); |
49 | 49 |
|
50 | 50 | private MongoTemplate mongoTemplate;
|
51 | 51 | private EntityManagerFactory entityManagerFactory;
|
@@ -88,8 +88,8 @@ public Object doInCollection(DBCollection collection) throws MongoException, Dat
|
88 | 88 | if (!changeSet.getValues().containsKey(key)) {
|
89 | 89 | String className = (String) dbo.get(ENTITY_FIELD_CLASS);
|
90 | 90 | if (className == null) {
|
91 |
| - throw new DataIntegrityViolationException("Unble to convert property " + key + ": Invalid metadata, " |
92 |
| - + ENTITY_FIELD_CLASS + " not available"); |
| 91 | + throw new DataIntegrityViolationException( |
| 92 | + "Unble to convert property " + key + ": Invalid metadata, " + ENTITY_FIELD_CLASS + " not available"); |
93 | 93 | }
|
94 | 94 | Class<?> clazz = ClassUtils.resolveClassName(className, ClassUtils.getDefaultClassLoader());
|
95 | 95 | Object value = mongoTemplate.getConverter().read(clazz, dbo);
|
|
0 commit comments