#include "map_entity.h" QX_REGISTER_CPP(MapEntity) namespace qx { template <> void register_class(QxClass & t) { t.setName("csci_map"); t.id(& MapEntity::id, "id"); t.data(& MapEntity::mapName, "map_name"); }} MapEntity::MapEntity(): id(0) { } MapEntity MapEntity::findById(long id) { MapEntity mapEntity; mapEntity.id = id; qx::dao::fetch_by_id(mapEntity); return mapEntity; } MapEntity::~MapEntity() = default;