use of com.infiniteautomation.mango.db.tables.records.EventsRecord in project ma-core-public by infiniteautomation.
the class EventDao method insertEvent.
private void insertEvent(EventInstance event) {
savePreRelationalData(event);
EventsRecord result = create.insertInto(table).set(voToObjectArray(event)).returning(table.id).fetchOne();
int id = result == null ? -1 : result.get(table.id);
event.setId(id);
}
Aggregations