fixed typo
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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) -> {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user