Skip to content

Commit 2ac2aa4

Browse files
committed
Change source code to work with new code generator.
1 parent 14531aa commit 2ac2aa4

File tree

2 files changed

+80
-2
lines changed

2 files changed

+80
-2
lines changed

Example/Shared/Author.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import ObjectBox
44

5-
// sourcery:Entity
5+
// objectbox:Entity
66
class Author {
77
var id: Id<Author> // An `Id<Author>` is required by ObjectBox
88
var name: String
9-
// sourcery: backlink = "author"
9+
// objectbox: backlink = "author"
1010
var notes: ToMany<Note, Author>
1111

1212
// An initializer with no parameters is required by ObjectBox

Example/model.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"_note1" : "KEEP THIS FILE! Check it into a version control system (VCS) like git.",
3+
"_note2" : "ObjectBox manages crucial IDs for your object model. See docs for details.",
4+
"_note3" : "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
5+
"entities" : [
6+
{
7+
"id" : "1:5583705076079463424",
8+
"lastPropertyId" : "2:5133554678033327616",
9+
"name" : "Author",
10+
"properties" : [
11+
{
12+
"id" : "1:4371847158049448960",
13+
"name" : "id"
14+
},
15+
{
16+
"id" : "2:5133554678033327616",
17+
"name" : "name"
18+
}
19+
],
20+
"relations" : [
21+
22+
]
23+
},
24+
{
25+
"id" : "2:7758259420781735424",
26+
"lastPropertyId" : "6:1866665135002402304",
27+
"name" : "Note",
28+
"properties" : [
29+
{
30+
"id" : "1:8437841205331707648",
31+
"name" : "id"
32+
},
33+
{
34+
"id" : "2:3918929197754965760",
35+
"name" : "title"
36+
},
37+
{
38+
"id" : "3:8821195973563359744",
39+
"name" : "text"
40+
},
41+
{
42+
"id" : "4:2590093015118339072",
43+
"name" : "creationDate"
44+
},
45+
{
46+
"id" : "5:3946767721663292416",
47+
"name" : "modificationDate"
48+
},
49+
{
50+
"id" : "6:1866665135002402304",
51+
"name" : "author"
52+
}
53+
],
54+
"relations" : [
55+
56+
]
57+
}
58+
],
59+
"lastEntityId" : "2:7758259420781735424",
60+
"lastIndexId" : "0:0",
61+
"lastRelationId" : "0:0",
62+
"lastSequenceId" : "0:0",
63+
"modelVersion" : 4,
64+
"modelVersionParserMinimum" : 4,
65+
"retiredEntityUids" : [
66+
67+
],
68+
"retiredIndexUids" : [
69+
70+
],
71+
"retiredPropertyUids" : [
72+
73+
],
74+
"retiredRelationUids" : [
75+
76+
],
77+
"version" : 1
78+
}

0 commit comments

Comments
 (0)