Skip to content

Commit

Permalink
Exclude hashCode from mapping (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitusortner authored Feb 10, 2019
1 parent 6eb65d8 commit caa0b76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion floor_generator/lib/model/entity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class Entity {

String get name => clazz.displayName;

List<FieldElement> get fields => clazz.fields;
List<FieldElement> get fields {
return clazz.fields
.where((field) => field.displayName != 'hashCode')
.toList();
}

List<Column> get columns {
return fields.map((field) => Column(field)).toList();
Expand Down

0 comments on commit caa0b76

Please sign in to comment.