- Core library header files added to core.h file.

- Fixed windows build.
- Added AccommodationService class.
This commit is contained in:
2015-10-30 13:57:13 +01:00
parent 53d56f2e13
commit 096605a39e
18 changed files with 94 additions and 41 deletions
+3 -1
View File
@@ -9,6 +9,8 @@
#include <odb/database.hxx>
#include <odb/result.hxx>
#include "core_global.h"
template<class T>
class Service
{
@@ -22,7 +24,7 @@ public:
QList<QSharedPointer<T> > ret;
for (typename odb::result<T>::iterator it = res.begin(); it != res.end(); it++) {
QSharedPointer<T> entity = db->template load<T>(((T*)*it)->id());
QSharedPointer<T> entity = db->template load<T>(((T)*it).getId());
ret.append(entity);
}