Beispiel #1
0
 /**
  * Fetches an entity with the specified id
  *
  * @param id The id of the entity to fetch
  * @return All of the entities or an appropriate error message
  */
 public EntityResponse<T> get(long id) {
   return createEntityResponseErrorIfNull(
       manager.get(id), MessageFormat.format("No {0} with that id exists!", entityType.getName()));
 }