Skip to content

Commit 1abcf27

Browse files
author
Ivan Dlugos
committed
increase generated code version to 6
1 parent a4192e4 commit 1abcf27

65 files changed

Lines changed: 70 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

internal/generator/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Version = "0.12.0"
3939
// VersionId specifies the current generator version identifier.
4040
// It is used to validate generated code compatibility and is increased when there are changes in the generated code.
4141
// Internal generator changes that don't change the output (in an incompatible way) do not cause an increase.
42-
const VersionId = 5
42+
const VersionId = 6
4343

4444
// ModelInfoFile returns the model info JSON file name in the given directory
4545
func ModelInfoFile(dir string) string {

test/comparison/testdata/go/converters/objectbox-model.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
// It is usually used when setting-up ObjectBox as an argument to the Builder.Model() function.
1111
func ObjectBoxModel() *objectbox.Model {
1212
model := objectbox.NewModel()
13-
model.GeneratorVersion(5)
13+
model.GeneratorVersion(6)
1414

1515
model.RegisterBinding(RuneIdEntityBinding)
1616
model.RegisterBinding(StringIdEntityBinding)

test/comparison/testdata/go/converters/runeid.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var RuneIdEntity_ = struct {
3636

3737
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
3838
func (runeIdEntity_EntityInfo) GeneratorVersion() int {
39-
return 5
39+
return 6
4040
}
4141

4242
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/converters/stringid.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var StringIdEntity_ = struct {
3636

3737
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
3838
func (stringIdEntity_EntityInfo) GeneratorVersion() int {
39-
return 5
39+
return 6
4040
}
4141

4242
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/converters/time.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var TimeEntity_ = struct {
4343

4444
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
4545
func (timeEntity_EntityInfo) GeneratorVersion() int {
46-
return 5
46+
return 6
4747
}
4848

4949
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/embedding/A.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var A_ = struct {
4343

4444
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
4545
func (a_EntityInfo) GeneratorVersion() int {
46-
return 5
46+
return 6
4747
}
4848

4949
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/embedding/B.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var B_ = struct {
5757

5858
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
5959
func (b_EntityInfo) GeneratorVersion() int {
60-
return 5
60+
return 6
6161
}
6262

6363
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/embedding/C.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var C_ = struct {
5050

5151
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
5252
func (c_EntityInfo) GeneratorVersion() int {
53-
return 5
53+
return 6
5454
}
5555

5656
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/embedding/D.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var D_ = struct {
4343

4444
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
4545
func (d_EntityInfo) GeneratorVersion() int {
46-
return 5
46+
return 6
4747
}
4848

4949
// AddToModel is called by ObjectBox during model build

test/comparison/testdata/go/embedding/E.obx.go.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var E_ = struct {
5858

5959
// GeneratorVersion is called by ObjectBox to verify the compatibility of the generator used to generate this code
6060
func (e_EntityInfo) GeneratorVersion() int {
61-
return 5
61+
return 6
6262
}
6363

6464
// AddToModel is called by ObjectBox during model build

0 commit comments

Comments
 (0)