func (o *AbnormalClaim) UpdateGP(columns boil.Columns) {
	err := o.Update(boil.GetDB(), columns)
	if err != nil {
		panic(boil.WrapErr(err))
	}
}
UpdateGP a single AbnormalClaim record using the global executor. Panics on error.
See Update for more documentation.
package model
import (
	"database/sql"
	"fmt"
	"reflect"
	"strconv"
	"strings"
	"sync"
	"time"
	"github.com/pkg/errors"
	"github.com/volatiletech/null"
	"github.com/volatiletech/sqlboiler/boil"
	"github.com/volatiletech/sqlboiler/queries"
	"github.com/volatiletech/sqlboiler/queries/qm"
	"github.com/volatiletech/sqlboiler/queries/qmhelper"
	"github.com/volatiletech/sqlboiler/strmangle"
)
type AbnormalClaim struct {
	ID              uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name            string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ClaimID         string      `boil:"claim_id" json:"claim_id" toml:"claim_id" yaml:"claim_id"`
	IsUpdate        bool        `boil:"is_update" json:"is_update" toml:"is_update" yaml:"is_update"`
	BlockHash       null.String `boil:"block_hash" json:"block_hash,omitempty" toml:"block_hash" yaml:"block_hash,omitempty"`
	TransactionHash null.String `boil:"transaction_hash" json:"transaction_hash,omitempty" toml:"transaction_hash" yaml:"transaction_hash,omitempty"`
	Vout            uint        `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	OutputID        uint64      `boil:"output_id" json:"output_id" toml:"output_id" yaml:"output_id"`
	ValueAsHex      string      `boil:"value_as_hex" json:"value_as_hex" toml:"value_as_hex" yaml:"value_as_hex"`
	ValueAsJSON     null.String `boil:"value_as_json" json:"value_as_json,omitempty" toml:"value_as_json" yaml:"value_as_json,omitempty"`
	CreatedAt       time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt      time.Time   `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`
	R *abnormalClaimR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L abnormalClaimL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var AbnormalClaimColumns = struct {
	ID              string
	Name            string
	ClaimID         string
	IsUpdate        string
	BlockHash       string
	TransactionHash string
	Vout            string
	OutputID        string
	ValueAsHex      string
	ValueAsJSON     string
	CreatedAt       string
	ModifiedAt      string
}{
	ID:              "id",
	Name:            "name",
	ClaimID:         "claim_id",
	IsUpdate:        "is_update",
	BlockHash:       "block_hash",
	TransactionHash: "transaction_hash",
	Vout:            "vout",
	OutputID:        "output_id",
	ValueAsHex:      "value_as_hex",
	ValueAsJSON:     "value_as_json",
	CreatedAt:       "created_at",
	ModifiedAt:      "modified_at",
}
type whereHelperuint64 struct{ field string }
func (w whereHelperuint64) EQ(x uint64) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperuint64) NEQ(x uint64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperuint64) LT(x uint64) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperuint64) LTE(x uint64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperuint64) GT(x uint64) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperuint64) GTE(x uint64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelperstring struct{ field string }
func (w whereHelperstring) EQ(x string) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperstring) NEQ(x string) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperstring) LT(x string) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperstring) LTE(x string) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperstring) GT(x string) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperstring) GTE(x string) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelperbool struct{ field string }
func (w whereHelperbool) EQ(x bool) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperbool) NEQ(x bool) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperbool) LT(x bool) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperbool) LTE(x bool) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperbool) GT(x bool) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperbool) GTE(x bool) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelpernull_String struct{ field string }
func (w whereHelpernull_String) EQ(x null.String) qm.QueryMod {
	return qmhelper.WhereNullEQ(w.field, false, x)
}
func (w whereHelpernull_String) NEQ(x null.String) qm.QueryMod {
	return qmhelper.WhereNullEQ(w.field, true, x)
}
func (w whereHelpernull_String) IsNull() qm.QueryMod    { return qmhelper.WhereIsNull(w.field) }
func (w whereHelpernull_String) IsNotNull() qm.QueryMod { return qmhelper.WhereIsNotNull(w.field) }
func (w whereHelpernull_String) LT(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LT, x)
}
func (w whereHelpernull_String) LTE(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LTE, x)
}
func (w whereHelpernull_String) GT(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GT, x)
}
func (w whereHelpernull_String) GTE(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GTE, x)
}
type whereHelperuint struct{ field string }
func (w whereHelperuint) EQ(x uint) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperuint) NEQ(x uint) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperuint) LT(x uint) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperuint) LTE(x uint) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperuint) GT(x uint) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperuint) GTE(x uint) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelpertime_Time struct{ field string }
func (w whereHelpertime_Time) EQ(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.EQ, x)
}
func (w whereHelpertime_Time) NEQ(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.NEQ, x)
}
func (w whereHelpertime_Time) LT(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LT, x)
}
func (w whereHelpertime_Time) LTE(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LTE, x)
}
func (w whereHelpertime_Time) GT(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GT, x)
}
func (w whereHelpertime_Time) GTE(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GTE, x)
}
var AbnormalClaimWhere = struct {
	ID              whereHelperuint64
	Name            whereHelperstring
	ClaimID         whereHelperstring
	IsUpdate        whereHelperbool
	BlockHash       whereHelpernull_String
	TransactionHash whereHelpernull_String
	Vout            whereHelperuint
	OutputID        whereHelperuint64
	ValueAsHex      whereHelperstring
	ValueAsJSON     whereHelpernull_String
	CreatedAt       whereHelpertime_Time
	ModifiedAt      whereHelpertime_Time
}{
	ID:              whereHelperuint64{field: "`abnormal_claim`.`id`"},
	Name:            whereHelperstring{field: "`abnormal_claim`.`name`"},
	ClaimID:         whereHelperstring{field: "`abnormal_claim`.`claim_id`"},
	IsUpdate:        whereHelperbool{field: "`abnormal_claim`.`is_update`"},
	BlockHash:       whereHelpernull_String{field: "`abnormal_claim`.`block_hash`"},
	TransactionHash: whereHelpernull_String{field: "`abnormal_claim`.`transaction_hash`"},
	Vout:            whereHelperuint{field: "`abnormal_claim`.`vout`"},
	OutputID:        whereHelperuint64{field: "`abnormal_claim`.`output_id`"},
	ValueAsHex:      whereHelperstring{field: "`abnormal_claim`.`value_as_hex`"},
	ValueAsJSON:     whereHelpernull_String{field: "`abnormal_claim`.`value_as_json`"},
	CreatedAt:       whereHelpertime_Time{field: "`abnormal_claim`.`created_at`"},
	ModifiedAt:      whereHelpertime_Time{field: "`abnormal_claim`.`modified_at`"},
}
var AbnormalClaimRels = struct {
	Output string
}{
	Output: "Output",
}
type abnormalClaimR struct {
	Output *Output
}
func (*abnormalClaimR) NewStruct() *abnormalClaimR {
	return &abnormalClaimR{}
}
type abnormalClaimL struct{}
var (
	abnormalClaimAllColumns            = []string{"id", "name", "claim_id", "is_update", "block_hash", "transaction_hash", "vout", "output_id", "value_as_hex", "value_as_json", "created_at", "modified_at"}
	abnormalClaimColumnsWithoutDefault = []string{"name", "claim_id", "block_hash", "transaction_hash", "vout", "output_id", "value_as_hex", "value_as_json"}
	abnormalClaimColumnsWithDefault    = []string{"id", "is_update", "created_at", "modified_at"}
	abnormalClaimPrimaryKeyColumns     = []string{"id"}
)
type (
	AbnormalClaimSlice []*AbnormalClaim
	abnormalClaimQuery struct {
		*queries.Query
	}
)
var (
	abnormalClaimType                 = reflect.TypeOf(&AbnormalClaim{})
	abnormalClaimMapping              = queries.MakeStructMapping(abnormalClaimType)
	abnormalClaimPrimaryKeyMapping, _ = queries.BindMapping(abnormalClaimType, abnormalClaimMapping, abnormalClaimPrimaryKeyColumns)
	abnormalClaimInsertCacheMut       sync.RWMutex
	abnormalClaimInsertCache          = make(map[string]insertCache)
	abnormalClaimUpdateCacheMut       sync.RWMutex
	abnormalClaimUpdateCache          = make(map[string]updateCache)
	abnormalClaimUpsertCacheMut       sync.RWMutex
	abnormalClaimUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q abnormalClaimQuery) OneG() (*AbnormalClaim, error) {
	return q.One(boil.GetDB())
}
func (q abnormalClaimQuery) OneGP() *AbnormalClaim {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q abnormalClaimQuery) OneP(exec boil.Executor) *AbnormalClaim {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q abnormalClaimQuery) One(exec boil.Executor) (*AbnormalClaim, error) {
	o := &AbnormalClaim{}
	queries.SetLimit(q.Query, 1)
	err := q.Bind(nil, exec, o)
	if err != nil {
		if errors.Cause(err) == sql.ErrNoRows {
			return nil, sql.ErrNoRows
		}
		return nil, errors.Wrap(err, "model: failed to execute a one query for abnormal_claim")
	}
	return o, nil
}
func (q abnormalClaimQuery) AllG() (AbnormalClaimSlice, error) {
	return q.All(boil.GetDB())
}
func (q abnormalClaimQuery) AllGP() AbnormalClaimSlice {
	o, err := q.All(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q abnormalClaimQuery) AllP(exec boil.Executor) AbnormalClaimSlice {
	o, err := q.All(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q abnormalClaimQuery) All(exec boil.Executor) (AbnormalClaimSlice, error) {
	var o []*AbnormalClaim
	err := q.Bind(nil, exec, &o)
	if err != nil {
		return nil, errors.Wrap(err, "model: failed to assign all query results to AbnormalClaim slice")
	}
	return o, nil
}
func (q abnormalClaimQuery) CountG() (int64, error) {
	return q.Count(boil.GetDB())
}
func (q abnormalClaimQuery) CountGP() int64 {
	c, err := q.Count(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return c
}
func (q abnormalClaimQuery) CountP(exec boil.Executor) int64 {
	c, err := q.Count(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return c
}
func (q abnormalClaimQuery) Count(exec boil.Executor) (int64, error) {
	var count int64
	queries.SetSelect(q.Query, nil)
	queries.SetCount(q.Query)
	err := q.Query.QueryRow(exec).Scan(&count)
	if err != nil {
		return 0, errors.Wrap(err, "model: failed to count abnormal_claim rows")
	}
	return count, nil
}
func (q abnormalClaimQuery) ExistsG() (bool, error) {
	return q.Exists(boil.GetDB())
}
func (q abnormalClaimQuery) ExistsGP() bool {
	e, err := q.Exists(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return e
}
func (q abnormalClaimQuery) ExistsP(exec boil.Executor) bool {
	e, err := q.Exists(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return e
}
func (q abnormalClaimQuery) Exists(exec boil.Executor) (bool, error) {
	var count int64
	queries.SetSelect(q.Query, nil)
	queries.SetCount(q.Query)
	queries.SetLimit(q.Query, 1)
	err := q.Query.QueryRow(exec).Scan(&count)
	if err != nil {
		return false, errors.Wrap(err, "model: failed to check if abnormal_claim exists")
	}
	return count > 0, nil
}
func (o *AbnormalClaim) Output(mods ...qm.QueryMod) outputQuery {
	queryMods := []qm.QueryMod{
		qm.Where("id=?", o.OutputID),
	}
	queryMods = append(queryMods, mods...)
	query := Outputs(queryMods...)
	queries.SetFrom(query.Query, "`output`")
	return query
}
func (abnormalClaimL) LoadOutput(e boil.Executor, singular bool, maybeAbnormalClaim interface{}, mods queries.Applicator) error {
	var slice []*AbnormalClaim
	var object *AbnormalClaim
	if singular {
		object = maybeAbnormalClaim.(*AbnormalClaim)
	} else {
		slice = *maybeAbnormalClaim.(*[]*AbnormalClaim)
	}
	args := make([]interface{}, 0, 1)
	if singular {
		if object.R == nil {
			object.R = &abnormalClaimR{}
		}
		args = append(args, object.OutputID)
	} else {
	Outer:
		for _, obj := range slice {
			if obj.R == nil {
				obj.R = &abnormalClaimR{}
			}
			for _, a := range args {
				if a == obj.OutputID {
					continue Outer
				}
			}
			args = append(args, obj.OutputID)
		}
	}
	if len(args) == 0 {
		return nil
	}
	query := NewQuery(qm.From(`output`), qm.WhereIn(`id in ?`, args...))
	if mods != nil {
		mods.Apply(query)
	}
	results, err := query.Query(e)
	if err != nil {
		return errors.Wrap(err, "failed to eager load Output")
	}
	var resultSlice []*Output
	if err = queries.Bind(results, &resultSlice); err != nil {
		return errors.Wrap(err, "failed to bind eager loaded slice Output")
	}
	if err = results.Close(); err != nil {
		return errors.Wrap(err, "failed to close results of eager load for output")
	}
	if err = results.Err(); err != nil {
		return errors.Wrap(err, "error occurred during iteration of eager loaded relations for output")
	}
	if len(resultSlice) == 0 {
		return nil
	}
	if singular {
		foreign := resultSlice[0]
		object.R.Output = foreign
		if foreign.R == nil {
			foreign.R = &outputR{}
		}
		foreign.R.AbnormalClaims = append(foreign.R.AbnormalClaims, object)
		return nil
	}
	for _, local := range slice {
		for _, foreign := range resultSlice {
			if local.OutputID == foreign.ID {
				local.R.Output = foreign
				if foreign.R == nil {
					foreign.R = &outputR{}
				}
				foreign.R.AbnormalClaims = append(foreign.R.AbnormalClaims, local)
				break
			}
		}
	}
	return nil
}
func (o *AbnormalClaim) SetOutputG(insert bool, related *Output) error {
	return o.SetOutput(boil.GetDB(), insert, related)
}
func (o *AbnormalClaim) SetOutputP(exec boil.Executor, insert bool, related *Output) {
	if err := o.SetOutput(exec, insert, related); err != nil {
		panic(boil.WrapErr(err))
	}
}
func (o *AbnormalClaim) SetOutputGP(insert bool, related *Output) {
	if err := o.SetOutput(boil.GetDB(), insert, related); err != nil {
		panic(boil.WrapErr(err))
	}
}
func (o *AbnormalClaim) SetOutput(exec boil.Executor, insert bool, related *Output) error {
	var err error
	if insert {
		if err = related.Insert(exec, boil.Infer()); err != nil {
			return errors.Wrap(err, "failed to insert into foreign table")
		}
	}
	updateQuery := fmt.Sprintf(
		"UPDATE `abnormal_claim` SET %s WHERE %s",
		strmangle.SetParamNames("`", "`", 0, []string{"output_id"}),
		strmangle.WhereClause("`", "`", 0, abnormalClaimPrimaryKeyColumns),
	)
	values := []interface{}{related.ID, o.ID}
	if boil.DebugMode {
		fmt.Fprintln(boil.DebugWriter, updateQuery)
		fmt.Fprintln(boil.DebugWriter, values)
	}
	if _, err = exec.Exec(updateQuery, values...); err != nil {
		return errors.Wrap(err, "failed to update local table")
	}
	o.OutputID = related.ID
	if o.R == nil {
		o.R = &abnormalClaimR{
			Output: related,
		}
	} else {
		o.R.Output = related
	}
	if related.R == nil {
		related.R = &outputR{
			AbnormalClaims: AbnormalClaimSlice{o},
		}
	} else {
		related.R.AbnormalClaims = append(related.R.AbnormalClaims, o)
	}
	return nil
}
func AbnormalClaims(mods ...qm.QueryMod) abnormalClaimQuery {
	mods = append(mods, qm.From("`abnormal_claim`"))
	return abnormalClaimQuery{NewQuery(mods...)}
}
func FindAbnormalClaimG(iD uint64, selectCols ...string) (*AbnormalClaim, error) {
	return FindAbnormalClaim(boil.GetDB(), iD, selectCols...)
}
func FindAbnormalClaimP(exec boil.Executor, iD uint64, selectCols ...string) *AbnormalClaim {
	retobj, err := FindAbnormalClaim(exec, iD, selectCols...)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return retobj
}
func FindAbnormalClaimGP(iD uint64, selectCols ...string) *AbnormalClaim {
	retobj, err := FindAbnormalClaim(boil.GetDB(), iD, selectCols...)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return retobj
}
func FindAbnormalClaim(exec boil.Executor, iD uint64, selectCols ...string) (*AbnormalClaim, error) {
	abnormalClaimObj := &AbnormalClaim{}
	sel := "*"
	if len(selectCols) > 0 {
		sel = strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, selectCols), ",")
	}
	query := fmt.Sprintf(
		"select %s from `abnormal_claim` where `id`=?", sel,
	)
	q := queries.Raw(query, iD)
	err := q.Bind(nil, exec, abnormalClaimObj)
	if err != nil {
		if errors.Cause(err) == sql.ErrNoRows {
			return nil, sql.ErrNoRows
		}
		return nil, errors.Wrap(err, "model: unable to select from abnormal_claim")
	}
	return abnormalClaimObj, nil
}
func (o *AbnormalClaim) InsertG(columns boil.Columns) error {
	return o.Insert(boil.GetDB(), columns)
}
func (o *AbnormalClaim) InsertP(exec boil.Executor, columns boil.Columns) {
	if err := o.Insert(exec, columns); err != nil {
		panic(boil.WrapErr(err))
	}
}
func (o *AbnormalClaim) InsertGP(columns boil.Columns) {
	if err := o.Insert(boil.GetDB(), columns); err != nil {
		panic(boil.WrapErr(err))
	}
}
func (o *AbnormalClaim) Insert(exec boil.Executor, columns boil.Columns) error {
	if o == nil {
		return errors.New("model: no abnormal_claim provided for insertion")
	}
	var err error
	nzDefaults := queries.NonZeroDefaultSet(abnormalClaimColumnsWithDefault, o)
	key := makeCacheKey(columns, nzDefaults)
	abnormalClaimInsertCacheMut.RLock()
	cache, cached := abnormalClaimInsertCache[key]
	abnormalClaimInsertCacheMut.RUnlock()
	if !cached {
		wl, returnColumns := columns.InsertColumnSet(
			abnormalClaimAllColumns,
			abnormalClaimColumnsWithDefault,
			abnormalClaimColumnsWithoutDefault,
			nzDefaults,
		)
		cache.valueMapping, err = queries.BindMapping(abnormalClaimType, abnormalClaimMapping, wl)
		if err != nil {
			return err
		}
		cache.retMapping, err = queries.BindMapping(abnormalClaimType, abnormalClaimMapping, returnColumns)
		if err != nil {
			return err
		}
		if len(wl) != 0 {
			cache.query = fmt.Sprintf("INSERT INTO `abnormal_claim` (`%s`) %%sVALUES (%s)%%s", strings.Join(wl, "`,`"), strmangle.Placeholders(dialect.UseIndexPlaceholders, len(wl), 1, 1))
		} else {
			cache.query = "INSERT INTO `abnormal_claim` () VALUES ()%s%s"
		}
		var queryOutput, queryReturning string
		if len(cache.retMapping) != 0 {
			cache.retQuery = fmt.Sprintf("SELECT `%s` FROM `abnormal_claim` WHERE %s", strings.Join(returnColumns, "`,`"), strmangle.WhereClause("`", "`", 0, abnormalClaimPrimaryKeyColumns))
		}
		cache.query = fmt.Sprintf(cache.query, queryOutput, queryReturning)
	}
	value := reflect.Indirect(reflect.ValueOf(o))
	vals := queries.ValuesFromMapping(value, cache.valueMapping)
	if boil.DebugMode {
		fmt.Fprintln(boil.DebugWriter, cache.query)
		fmt.Fprintln(boil.DebugWriter, vals)
	}
	result, err := exec.Exec(cache.query, vals...)
	if err != nil {
		return errors.Wrap(err, "model: unable to insert into abnormal_claim")
	}
	var lastID int64
	var identifierCols []interface{}
	if len(cache.retMapping) == 0 {
		goto CacheNoHooks
	}
	lastID, err = result.LastInsertId()
	if err != nil {
		return ErrSyncFail
	}
	o.ID = uint64(lastID)
	if lastID != 0 && len(cache.retMapping) == 1 && cache.retMapping[0] == abnormalClaimMapping["ID"] {
		goto CacheNoHooks
	}
	identifierCols = []interface{}{
		o.ID,
	}
	if boil.DebugMode {
		fmt.Fprintln(boil.DebugWriter, cache.retQuery)
		fmt.Fprintln(boil.DebugWriter, identifierCols...)
	}
	err = exec.QueryRow(cache.retQuery, identifierCols...).Scan(queries.PtrsFromMapping(value, cache.retMapping)...)
	if err != nil {
		return errors.Wrap(err, "model: unable to populate default values for abnormal_claim")
	}
CacheNoHooks:
	if !cached {
		abnormalClaimInsertCacheMut.Lock()
		abnormalClaimInsertCache[key] = cache
		abnormalClaimInsertCacheMut.Unlock()
	}
	return nil
}
func (o *AbnormalClaim) UpdateG(columns boil.Columns) error {
	return o.Update(boil.GetDB(), columns)
}
func (o *AbnormalClaim) UpdateP(exec boil.Executor, columns boil.Columns) {
	err := o.Update(exec, columns)
	if err != nil {
		panic(boil.WrapErr(err))
	}
}