From 8a8482207e25b6e12f910b66d643b23d70bdd076 Mon Sep 17 00:00:00 2001 From: Mircea MATEI Date: Thu, 14 Mar 2019 01:48:10 +0200 Subject: [PATCH] #4. Updating example files --- src/example/example.dart | 26 +++++++++++++++++++++++++- src/example/example.g.dart | 6 ++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/example/example.dart b/src/example/example.dart index cd7bb6a..3f08ac4 100644 --- a/src/example/example.dart +++ b/src/example/example.dart @@ -3,4 +3,28 @@ import 'package:flutter_orm_m8/flutter_orm_m8.dart'; part "example.g.dart"; @DataTable("health_entries") -class HealthEntry {} +class HealthEntry extends DbAccountRelatedEntity { + @DataColumn( + "id", + ColumnMetadata.PrimaryKey & + ColumnMetadata.Unique & + ColumnMetadata.AutoIncrement) + int id; + + @DataColumn("account_id") + int accountId; + + @DataColumn("record_date") + int recordDate; + + @DataColumn("is_deleted") + int isDeleted; + + @override + Map toMap() { + // TODO: implement toMap + return null; + } +} + + diff --git a/src/example/example.g.dart b/src/example/example.g.dart index f0cb5dc..fde3e3f 100644 --- a/src/example/example.g.dart +++ b/src/example/example.g.dart @@ -3,7 +3,9 @@ part of 'example.dart'; // ************************************************************************** -// EntityHelperM8Generator +// Generator: OrmM8GeneratorForAnnotation // ************************************************************************** -//Annotation found! +/* +Instance of 'EntityWriter' +*/