#include "accommodationservice.h" #include #include #include "accommodation-odb.hxx" AccommodationService::AccommodationService() { } AccommodationService::~AccommodationService() { } void AccommodationService::pokus(QSharedPointer entity) { odb::database *db = Context::instance().db(); //odb::transaction tr(db->begin()); Transaction tr; this->all(); db->persist(entity); tr.commit(); }