DATACMNS-771 - Fixed typo in BasicPersistentEntity.

Original pull request: #145.
This commit is contained in:
Ricardo Espirito Santo
2015-10-05 16:10:15 +01:00
committed by Oliver Gierke
parent 828c19a4e5
commit 91eaf1bc50

View File

@@ -403,7 +403,7 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
@Override
public IdentifierAccessor getIdentifierAccessor(Object bean) {
Assert.notNull(bean, "Targte bean must not be null!");
Assert.notNull(bean, "Target bean must not be null!");
Assert.isTrue(getType().isInstance(bean), "Target bean is not of type of the persistent entity!");
return hasIdProperty() ? new IdPropertyIdentifierAccessor(this, bean) : NullReturningIdentifierAccessor.INSTANCE;