DATACMNS-771 - Fixed typo in BasicPersistentEntity.
Original pull request: #145.
This commit is contained in:
committed by
Oliver Gierke
parent
828c19a4e5
commit
91eaf1bc50
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user