Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 52 forks source link

Missing "part 'user.jorm.dart';" #118

Closed rodolfoggp closed 5 years ago

rodolfoggp commented 5 years ago

I'm trying to follow this tutorial: https://github.com/Jaguar-dart/jaguar_orm/wiki/Generating-ORM-for-simple-table

But when I run "flutter pub pub run build_runner build" to generate the _UserBean class, apparently it doesn't work. How can I find this generated class?

I'm also getting this on my terminal:

[INFO] Running build... [WARNING] jaguar_orm_gen on lib/model/user.dart: Generating bean for UserBean ... [WARNING] jaguar_orm_gen on lib/model/user.dart: Missing "part 'user.jorm.dart';". [INFO] Running build completed, took 1.0s

tejainece commented 5 years ago

@rodolfoggp Add the following line in your user.dart file:

part 'user.jorm.dart';

user.jorm.dart file is generated by the when you run pub run build_runner build.

tejainece commented 5 years ago

I have also updated the wiki page to reflect this.