fixed typo

This commit is contained in:
Andreas Billmann
2015-03-23 22:40:57 +01:00
parent 8d05f61c1d
commit 8783c85af6
4 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ public interface CacheDAO {
void save(List<Cache> listOfCaches); void save(List<Cache> listOfCaches);
void update(Cache cache); void update(Cache cache);
List<CacheListEntry> getAllCachEntriesSortBy(String name, String asc); List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc);
Cache getCacheForId(long id); Cache getCacheForId(long id);

View File

@@ -42,6 +42,7 @@ import javax.sql.DataSource;
@Configuration @Configuration
@PropertySource("classpath:/de/geofroggerfx/dao/jdbc/database.properties") @PropertySource("classpath:/de/geofroggerfx/dao/jdbc/database.properties")
public class DataConfig { public class DataConfig {
@Autowired @Autowired
private Environment env; private Environment env;

View File

@@ -112,7 +112,7 @@ public class JdbcCacheDAO implements CacheDAO {
} }
@Override @Override
public List<CacheListEntry> getAllCachEntriesSortBy(String name, String asc) { public List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc) {
return this.jdbcTemplate.query( return this.jdbcTemplate.query(
"SELECT c.id, c.name AS name, c.name AS code, c.difficulty, c.terrain, c.type FROM "+CACHE_TABLE+" c ORDER BY "+name+" "+asc, "SELECT c.id, c.name AS name, c.name AS code, c.difficulty, c.terrain, c.type FROM "+CACHE_TABLE+" c ORDER BY "+name+" "+asc,
(rs, rowNum) -> { (rs, rowNum) -> {

View File

@@ -49,7 +49,7 @@ public class CacheServiceImpl implements CacheService {
@Override @Override
public List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc) { public List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc) {
return cacheDAO.getAllCachEntriesSortBy(name, asc); return cacheDAO.getAllCacheEntriesSortBy(name, asc);
} }
@Override @Override