func (entityByValue_EntityInfo) SetId(object interface{}, id uint64) error {
	if obj, ok := object.(*EntityByValue); ok {
		obj.Id = id
		return nil
	} else {
		_ = object.(EntityByValue).Id
		return nil
	}
}
SetId is called by ObjectBox during Put to update an ID on an object that has just been inserted
package model
import (
	"errors"
	"github.com/google/flatbuffers/go"
	"github.com/objectbox/objectbox-go/objectbox"
	"github.com/objectbox/objectbox-go/objectbox/fbutils"
)
type entityByValue_EntityInfo struct {
	objectbox.Entity
	Uid uint64
}
var EntityByValueBinding = entityByValue_EntityInfo{
	Entity: objectbox.Entity{
		Id: 3,
	},
	Uid: 2793387980842421409,
}
var EntityByValue_ = struct {
	Id   *objectbox.PropertyUint64
	Text *objectbox.PropertyString
}{
	Id: &objectbox.PropertyUint64{
		BaseProperty: &objectbox.BaseProperty{
			Id:     1,
			Entity: &EntityByValueBinding.Entity,
		},
	},
	Text: &objectbox.PropertyString{
		BaseProperty: &objectbox.BaseProperty{
			Id:     2,
			Entity: &EntityByValueBinding.Entity,
		},
	},
}
func (entityByValue_EntityInfo) GeneratorVersion() int {
	return 6
}
func (entityByValue_EntityInfo) AddToModel(model *objectbox.Model) {
	model.Entity("EntityByValue", 3, 2793387980842421409)
	model.Property("Id", 6, 1, 8853550994304785841)
	model.PropertyFlags(1)
	model.Property("Text", 9, 2, 6704507893545428268)
	model.EntityLastPropertyId(2, 6704507893545428268)
}
func (entityByValue_EntityInfo) GetId(object interface{}) (uint64, error) {
	if obj, ok := object.(*EntityByValue); ok {
		return obj.Id, nil
	} else {
		return object.(EntityByValue).Id, nil
	}
}