Skip to content

Commit

Permalink
DATACMNS-20 - Adapted refactoring of Repository.findById(…) to findOn…
Browse files Browse the repository at this point in the history
…e(…).
  • Loading branch information
odrotbohm committed Mar 12, 2011
1 parent 4daab96 commit 01a800b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public List<T> save(Iterable<? extends T> entities) {
*
* @see org.springframework.data.repository.Repository#findById(java.io.Serializable )
*/
public T findById(ID id) {
public T findOne(ID id) {

return template.findOne(entityInformation.getCollectionName(), getIdQuery(id), entityInformation.getJavaType());
}
Expand All @@ -113,7 +113,7 @@ private Criteria getIdCriteria(Object id) {
*/
public boolean exists(ID id) {

return findById(id) != null;
return findOne(id) != null;
}

/*
Expand Down

0 comments on commit 01a800b

Please sign in to comment.