Commit e096a4ff authored by Maroun Koussaifi's avatar Maroun Koussaifi
Browse files

Fix the queries of the endpoints

parent 84d64f46
......@@ -168,7 +168,7 @@ public class PAGateway {
* @return the list of all available hardware
*/
public List<Hardware> getHardwareList() {
return EntityManagerHelper.createQuery("SELECT hw FROM HARDWARE hw",
return EntityManagerHelper.createQuery("SELECT hw FROM Hardware hw",
Hardware.class).getResultList();
}
......@@ -177,7 +177,7 @@ public class PAGateway {
* @return the list of all available locations
*/
public List<Location> getLocationList() {
return EntityManagerHelper.createQuery("SELECT loc FROM LOCATION loc",
return EntityManagerHelper.createQuery("SELECT loc FROM Location loc",
Location.class).getResultList();
}
......@@ -186,7 +186,7 @@ public class PAGateway {
* @return the list of all available monitors
*/
public List<Monitor> getMonitorsList() {
return EntityManagerHelper.createQuery("SELECT mon FROM MONITOR mon",
return EntityManagerHelper.createQuery("SELECT mon FROM Monitor mon",
Monitor.class).getResultList();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment