File tree 2 files changed +14
-0
lines changed
generator/test/cases/single_entity
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
import "package:objectbox/objectbox.dart";
2
2
part "single_entity.g.dart";
3
3
4
+ /// A dummy annotation to verify the code is generated properly even with annotations unknown to ObjectBox generator.
5
+ class TestingUnknownAnnotation {
6
+ const TestingUnknownAnnotation();
7
+ }
8
+
4
9
@Entity(uid: 1234)
10
+ @TestingUnknownAnnotation()
5
11
class SingleEntity {
6
12
@Id(uid: 5678)
7
13
int id;
8
14
9
15
@Property(uid: 4321)
16
+ @TestingUnknownAnnotation()
10
17
String texta;
11
18
}
Original file line number Diff line number Diff line change @@ -2,9 +2,16 @@ import "package:objectbox/objectbox.dart";
2
2
3
3
part 'entity.g.dart' ;
4
4
5
+ /// A dummy annotation to verify the code is generated properly even with annotations unknown to ObjectBox generator.
6
+ class TestingUnknownAnnotation {
7
+ const TestingUnknownAnnotation ();
8
+ }
9
+
5
10
@Entity ()
11
+ @TestingUnknownAnnotation ()
6
12
class TestEntity {
7
13
@Id ()
14
+ @TestingUnknownAnnotation ()
8
15
int id;
9
16
10
17
// implicitly determined types
You can’t perform that action at this time.
0 commit comments