Commit a193cb7b authored by Mohamed Khalil Labidi's avatar Mohamed Khalil Labidi
Browse files

Merge branch 'fix-endpoints-queries' into 'proactive-dev'

Fix the queries of the endpoints

See merge request !117
parents 84d64f46 e096a4ff
......@@ -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