mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:25:49 +00:00
Updating using GitHub API 2025-06-19-15:31
This commit is contained in:
parent
eee0247315
commit
28225fed73
1 changed files with 5 additions and 1 deletions
|
@ -32,6 +32,10 @@ import java.util.Collection;
|
||||||
*/
|
*/
|
||||||
public abstract class EntityUtils {
|
public abstract class EntityUtils {
|
||||||
|
|
||||||
|
private EntityUtils() {
|
||||||
|
// private constructor to prevent instantiation
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Look up the entity of the given class with the given id in the given collection.
|
* Look up the entity of the given class with the given id in the given collection.
|
||||||
* @param entities the collection to search
|
* @param entities the collection to search
|
||||||
|
@ -50,4 +54,4 @@ public abstract class EntityUtils {
|
||||||
throw new ObjectRetrievalFailureException(entityClass, entityId);
|
throw new ObjectRetrievalFailureException(entityClass, entityId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue