Skip to content

Commit c8c3d68

Browse files
committed
lastEntityId lastIndexId in generator, fix modelIndexId in ftl
1 parent b045740 commit c8c3d68

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

objectbox-java/src/main/java/io/objectbox/ModelBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public class ModelBuilder {
1616
final List<Integer> entityOffsets = new ArrayList<>();
1717

1818
long version = 1;
19-
Long lastEntityId;
20-
Long lastIndexId;
19+
Integer lastEntityId;
20+
Integer lastIndexId;
2121

2222
public class PropertyBuilder {
2323
boolean finished;
@@ -148,12 +148,12 @@ public EntityBuilder entity(String name) {
148148
return new EntityBuilder(name);
149149
}
150150

151-
public ModelBuilder lastEntityId(long lastEntityId) {
151+
public ModelBuilder lastEntityId(int lastEntityId) {
152152
this.lastEntityId = lastEntityId;
153153
return this;
154154
}
155155

156-
public ModelBuilder lastIndexId(long lastIndexId) {
156+
public ModelBuilder lastIndexId(int lastIndexId) {
157157
this.lastIndexId = lastIndexId;
158158
return this;
159159
}

0 commit comments

Comments
 (0)