You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*
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)
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)
#6 _Builder._generateForLibrary (package:source_gen/src/builder.dart:73:15)
#7 _Builder.build (package:source_gen/src/builder.dart:67:11)
#8 runBuilder.buildForInput (package:build/src/generate/run_builder.dart:55:21)
#9 MappedListIterable.elementAt (dart:_internal/iterable.dart:417:29)
#10 ListIterator.moveNext (dart:_internal/iterable.dart:346:26)
#11 Future.wait (dart:async/future.dart:393:26)
#12 runBuilder. (package:build/src/generate/run_builder.dart:61:36)
#13 _rootRun (dart:async/zone.dart:1126:13)
#14 _CustomZone.run (dart:async/zone.dart:1023:19)
#15 _runZoned (dart:async/zone.dart:1518:10)
#16 runZoned (dart:async/zone.dart:1502:12)
#17 scopeLogAsync (package:build/src/builder/logging.dart:22:3)
#18 runBuilder (package:build/src/generate/run_builder.dart:61:9)
#19 _SingleBuild._runForInput... (package:build_runner_core/src/generate/build_impl.dart:486:19)
#20 _NoOpBuilderActionTracker.trackStage (package:build_runner_core/src/generate/performance_tracker.dart:302:15)
#21 _SingleBuild._runForInput.. (package:build_runner_core/src/generate/build_impl.dart:484:23)
#22 NoOpTimeTracker.track (package:timing/src/timing.dart:222:44)
#23 _SingleBuild._runForInput. (package:build_runner_core/src/generate/build_impl.dart:441:22)
#24 Pool.withResource (package:pool/pool.dart:127:28)
#25 _SingleBuild._runForInput (package:build_runner_core/src/generate/build_impl.dart:437:17)
#26 _SingleBuild._runBuilder. (package:build_runner_core/src/generate/build_impl.dart:375:38)
#27 MappedIterator.moveNext (dart:_internal/iterable.dart:395:18)
#28 Future.wait (dart:async/future.dart:393:26)
#29 _SingleBuild._runBuilder (package:build_runner_core/src/generate/build_impl.dart:374:36)
#30 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:45:6)
#31 _SingleBuild._runBuilder (package:build_runner_core/src/generate/build_impl.dart:372:40)
#32 _SingleBuild._runPhases.. (package:build_runner_core/src/generate/build_impl.dart:320:20)
#33 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:73:64)
#34 _rootRunUnary (dart:async/zone.dart:1134:38)
#35 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#36 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#37 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#38 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#39 Future._completeWithValue (dart:async/future_impl.dart:524:5)
#40 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#41 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#42 _SingleBuild._matchingPrimaryInputs (package:build_runner_core/src/generate/build_impl.dart)
#43 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:73:64)
#44 _rootRunUnary (dart:async/zone.dart:1134:38)
#45 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#46 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#47 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#48 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#49 Future._completeWithValue (dart:async/future_impl.dart:524:5)
#50 Future.wait. (dart:async/future.dart:400:22)
#51 _rootRunUnary (dart:async/zone.dart:1134:38)
#52 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#53 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#54 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#55 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#56 Future._completeWithValue (dart:async/future_impl.dart:524:5)
#57 Future._asyncComplete. (dart:async/future_impl.dart:554:7)
#58 _rootRun (dart:async/zone.dart:1126:13)
#59 _CustomZone.run (dart:async/zone.dart:1023:19)
#60 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#61 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
#62 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#63 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#64 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#65 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)
*/
Thanks for your help !
The text was updated successfully, but these errors were encountered: