fixed typo
This commit is contained in:
@@ -37,7 +37,7 @@ public interface CacheDAO {
|
||||
|
||||
void save(List<Cache> listOfCaches);
|
||||
void update(Cache cache);
|
||||
List<CacheListEntry> getAllCachEntriesSortBy(String name, String asc);
|
||||
List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc);
|
||||
|
||||
Cache getCacheForId(long id);
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ import javax.sql.DataSource;
|
||||
@Configuration
|
||||
@PropertySource("classpath:/de/geofroggerfx/dao/jdbc/database.properties")
|
||||
public class DataConfig {
|
||||
|
||||
@Autowired
|
||||
private Environment env;
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ public class JdbcCacheDAO implements CacheDAO {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CacheListEntry> getAllCachEntriesSortBy(String name, String asc) {
|
||||
public List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc) {
|
||||
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,
|
||||
(rs, rowNum) -> {
|
||||
|
||||
@@ -49,7 +49,7 @@ public class CacheServiceImpl implements CacheService {
|
||||
|
||||
@Override
|
||||
public List<CacheListEntry> getAllCacheEntriesSortBy(String name, String asc) {
|
||||
return cacheDAO.getAllCachEntriesSortBy(name, asc);
|
||||
return cacheDAO.getAllCacheEntriesSortBy(name, asc);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user