Skip to content

Commit 80ebedb

Browse files
committed
Merge branch 'uli/include-objectbox-generator-sourcery-fork-81' into 'master'
Uli/include objectbox generator sourcery fork 81 See merge request objectbox/objectbox-swift-public!2
2 parents 14531aa + 28a94b8 commit 80ebedb

File tree

2 files changed

+81
-2
lines changed

2 files changed

+81
-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: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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:712683617673955584",
8+
"lastPropertyId" : "2:5025387500910526208",
9+
"name" : "Author",
10+
"properties" : [
11+
{
12+
"id" : "1:6336800942024279296",
13+
"name" : "id"
14+
},
15+
{
16+
"id" : "2:5025387500910526208",
17+
"name" : "name"
18+
}
19+
],
20+
"relations" : [
21+
22+
]
23+
},
24+
{
25+
"id" : "2:5608901830082711040",
26+
"lastPropertyId" : "6:6001769173142034944",
27+
"name" : "Note",
28+
"properties" : [
29+
{
30+
"id" : "1:7180411752564202752",
31+
"name" : "id"
32+
},
33+
{
34+
"id" : "2:249105953415333376",
35+
"name" : "title"
36+
},
37+
{
38+
"id" : "3:5661281725891017216",
39+
"name" : "text"
40+
},
41+
{
42+
"id" : "4:8342334437465755392",
43+
"name" : "creationDate"
44+
},
45+
{
46+
"id" : "5:8881960381068888832",
47+
"name" : "modificationDate"
48+
},
49+
{
50+
"id" : "6:6001769173142034944",
51+
"indexId" : "1:6069708401898380544",
52+
"name" : "author"
53+
}
54+
],
55+
"relations" : [
56+
57+
]
58+
}
59+
],
60+
"lastEntityId" : "2:5608901830082711040",
61+
"lastIndexId" : "1:6069708401898380544",
62+
"lastRelationId" : "0:0",
63+
"lastSequenceId" : "0:0",
64+
"modelVersion" : 4,
65+
"modelVersionParserMinimum" : 4,
66+
"retiredEntityUids" : [
67+
68+
],
69+
"retiredIndexUids" : [
70+
71+
],
72+
"retiredPropertyUids" : [
73+
74+
],
75+
"retiredRelationUids" : [
76+
77+
],
78+
"version" : 1
79+
}

0 commit comments

Comments
 (0)