Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
BSD 3-Clause "New" or "Revised" License
217
stars
54
forks
source link
Field artisteMorceau has exception: Exception: Field type not recognised: Artiste! #188
Open
Park57 opened 4 years ago
It is possible to have an object Field ?
`class Morceau { @PrimaryKey(auto: true, isNullable: false) int codeMorceau;
@Column(length: 30, isNullable: true) String titreMorceau;
@BelongsTo.many(ArtisteBean, refCol: 'codeArtiste') Artiste artisteMorceau; } `
`class Artiste {
@PrimaryKey(auto: true, isNullable: false) int codeArtiste;
@Column(length: 30, isNullable: true) String nomArtiste;
@HasMany(MorceauBean) List morceauxArtiste;
}
`
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'morceau.dart';
// ** // BeanGenerator // **
/* Field artisteMorceau has exception: Exception: Field type not recognised: Artiste!
0 Field.vType (package:jaguar_orm_gen/src/model/model.dart:21:7)
1 Writer._generate (package:jaguar_orm_gen/src/writer/writer.dart:19:43)
2 new Writer (package:jaguar_orm_gen/src/writer/writer.dart:11:5)
3 BeanGenerator.generateForAnnotatedElement (package:jaguar_orm_gen/src/hook/hook.dart:41:26)
4 GeneratorForAnnotation.generate (package:source_gen/src/generator_for_annotation.dart:47:30)
5 _generate (package:source_gen/src/builder.dart:280:35)