diff --git a/spring-data-mock/src/main/java/com/mmnaseri/utils/spring/data/repository/DefaultCrudRepository.java b/spring-data-mock/src/main/java/com/mmnaseri/utils/spring/data/repository/DefaultCrudRepository.java index d64d3aea..c34af473 100644 --- a/spring-data-mock/src/main/java/com/mmnaseri/utils/spring/data/repository/DefaultCrudRepository.java +++ b/spring-data-mock/src/main/java/com/mmnaseri/utils/spring/data/repository/DefaultCrudRepository.java @@ -26,7 +26,6 @@ public class DefaultCrudRepository extends CrudRepositorySupport { /** * Saves all the given entities - * * @param entities entities to save (insert or update) * @return saved entities */ @@ -42,7 +41,6 @@ public Iterable save(Iterable entities) { /** * Finds the entity that was saved with this key, or returns {@literal null} - * * @param key the key * @return the entity */ @@ -53,7 +51,6 @@ public Object findOne(Serializable key) { /** * Checks whether the given key represents an entity in the data store - * * @param key the key * @return {@literal true} if the key is valid */ @@ -63,7 +60,6 @@ public boolean exists(Serializable key) { /** * Finds all the entities that match the given set of ids - * * @param ids ids to look for * @return entities that matched the ids. */ @@ -84,7 +80,6 @@ public Iterable findAll(Iterable ids) { /** * Deletes the entity with the given id and returns the actual entity that * was just deleted. - * * @param id the id * @return the entity that was deleted or {@literal null} if it wasn't found */ @@ -92,7 +87,7 @@ public Object delete(Serializable id) { Object retrieved = getDataStore().retrieve(id); log.info("Attempting to delete the entity with key " + id); if (retrieved == null) { - log.info("Object not found with key " + id + ", try to find by identyfier property"); + log.info("Object not found with key " + id + ", try to find by identifier property"); try { id = (Serializable) PropertyUtils.getPropertyValue(id, getRepositoryMetadata().getIdentifierProperty()); retrieved = getDataStore().retrieve(id); @@ -106,7 +101,6 @@ public Object delete(Serializable id) { /** * Deletes the entity matching this entity's key from the data store - * * @param entity the entity * @return the deleted entity * @throws EntityMissingKeyException if the passed entity doesn't have a key @@ -122,7 +116,6 @@ public Object delete(Object entity) { /** * Deletes all specified entities from the data store. - * * @param entities the entities to delete * @return the entities that were actually deleted */ @@ -142,7 +135,6 @@ public Iterable delete(Iterable entities) { /** * Deletes everything from the data store - * * @return all the entities that were removed */ public Iterable deleteAll() {