Skip to content
Snippets Groups Projects
Commit 50d1d354 authored by Sven Graupner's avatar Sven Graupner
Browse files

minor changes.

parent 4d5e05b8
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@ public interface RepositoryIntf<E extends Entity> { //extends CrudRepository<E,S
public Iterable<E> findAllById( Iterable<String> ids );
/**
* Find method that returns List of entities matching the name-field.
* Find method that returns entity that matches the regular expression. If more than
* one entity match, a random matching entity is returned.
*
* @param regEx regular expression to match getName() property.
* @return Optional of entity matching name.
......@@ -135,7 +136,7 @@ public interface RepositoryIntf<E extends Entity> { //extends CrudRepository<E,S
*
* @param entities list of entities to be deleted from repository.
*/
public void deleteAll( Iterable<E> entity );
public void deleteAll( Iterable<E> entities );
/**
* Delete all entities from repository as one atomic transaction. The result
......
......@@ -153,6 +153,7 @@ class SimpleRepositoryImpl<E extends Entity> implements RepositoryIntf<E> {
* @param entities
* @return
*/
@Override
public Iterable<E> saveAll( Iterable<E> entities ) {
List<E> res = new ArrayList<E>();
for( E e : entities ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment