Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public List<AbstractDataEntity> getDataEntitysByRouteId(DataType type,
- String busRouteId) {
- Query query = em
- .createQuery("Select a from AbstractDataEntity a where a.dataType =com.cybercom.bussimulator.datatype.DataType."
- + type
- + " and a.mqttBus.busRouteId ='"
- + busRouteId
- + "' group by a.mqttBus.busId ORDER BY a.id DESC");
- return query.getResultList();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement