Merge tag 'OB_14.4.1-33' into omaha_14.4.1

14.4.1-33


Former-commit-id: 40660158ab [formerly c97ae8555c08e5394c536a42e1b25e0c47a310aa]
Former-commit-id: 165f28211d
This commit is contained in:
Steve Harris 2015-05-05 13:18:29 -05:00
commit 3e0f89c5d0
2 changed files with 5 additions and 1 deletions

View file

@ -107,6 +107,7 @@ import com.raytheon.uf.edex.database.query.DatabaseQuery;
* 06/12/14 #3244 randerso Improved error handling
* 09/21/2014 #3648 randerso Changed to do version purging when new databases are added
* 10/16/2014 3454 bphillip Upgrading to Hibernate 4
* 04/28/2015 17435 randerso Fix getLatestDbIdByModelName().
*
* </pre>
*
@ -1372,7 +1373,8 @@ public class GFEDao extends DefaultPluginDao {
public List<DatabaseID> doInTransaction(
TransactionStatus status) {
Query query = getCurrentSession().createQuery("FROM DatabaseID WHERE siteId = :siteId AND modelName = :modelName ORDER BY modelTime DESC LIMIT 1");
Query query = getCurrentSession().createQuery("FROM DatabaseID WHERE siteId = :siteId AND modelName = :modelName ORDER BY modelTime DESC");
query.setMaxResults(1);
query.setParameter("siteId", siteId);
query.setParameter("modelName",modelName);
return query.list();

View file

@ -14,4 +14,6 @@ Require-Bundle: com.raytheon.uf.common.dataplugin,
com.raytheon.uf.common.geospatial,
com.raytheon.uf.common.serialization,
com.raytheon.uf.common.dataaccess,
com.raytheon.uf.common.message,
javax.measure
Eclipse-RegisterBuddy: com.raytheon.uf.common.message