Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
Description
Currently to achieve the same functionality we need to write next code:
SQLTemplate query = (SQLTemplate) dataContext.getEntityResolver().lookupQuery("GetUris");
query.setColumnNamesCapitalization(SQLTemplate.UPPERCASE_COLUMN_NAMES);
List<Uri> uris = dataContext.performQuery(query);
It could be much better to write just this:
NamedQuery query = new NamedQuery("GetUris");
query.setColumnNamesCapitalization(SQLTemplate.UPPERCASE_COLUMN_NAMES);
List<Uri> uris = dataContext.performQuery(query);
Code without casts looks more pretty and clean... doesn't it?