func AddEthnicGroupHook(hookPoint boil.HookPoint, ethnicGroupHook EthnicGroupHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		ethnicGroupBeforeInsertHooks = append(ethnicGroupBeforeInsertHooks, ethnicGroupHook)
	case boil.BeforeUpdateHook:
		ethnicGroupBeforeUpdateHooks = append(ethnicGroupBeforeUpdateHooks, ethnicGroupHook)
	case boil.BeforeDeleteHook:
		ethnicGroupBeforeDeleteHooks = append(ethnicGroupBeforeDeleteHooks, ethnicGroupHook)
	case boil.BeforeUpsertHook:
		ethnicGroupBeforeUpsertHooks = append(ethnicGroupBeforeUpsertHooks, ethnicGroupHook)
	case boil.AfterInsertHook:
		ethnicGroupAfterInsertHooks = append(ethnicGroupAfterInsertHooks, ethnicGroupHook)
	case boil.AfterSelectHook:
		ethnicGroupAfterSelectHooks = append(ethnicGroupAfterSelectHooks, ethnicGroupHook)
	case boil.AfterUpdateHook:
		ethnicGroupAfterUpdateHooks = append(ethnicGroupAfterUpdateHooks, ethnicGroupHook)
	case boil.AfterDeleteHook:
		ethnicGroupAfterDeleteHooks = append(ethnicGroupAfterDeleteHooks, ethnicGroupHook)
	case boil.AfterUpsertHook:
		ethnicGroupAfterUpsertHooks = append(ethnicGroupAfterUpsertHooks, ethnicGroupHook)
	}
}
// AddEthnicGroupHook registers your hook function for all future operations.
AddEthnicGroupHook registers your hook function for all future operations.
// AddEthnicGroupHook registers your hook function for all future operations .
func AddEthnicGroupHook(hookPoint boil.HookPoint, ethnicGroupHook EthnicGroupHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		ethnicGroupBeforeInsertHooks = append(ethnicGroupBeforeInsertHooks, ethnicGroupHook)
	case boil.BeforeUpdateHook:
		ethnicGroupBeforeUpdateHooks = append(ethnicGroupBeforeUpdateHooks, ethnicGroupHook)
	case boil.BeforeDeleteHook:
		ethnicGroupBeforeDeleteHooks = append(ethnicGroupBeforeDeleteHooks, ethnicGroupHook)
	case boil.BeforeUpsertHook:
		ethnicGroupBeforeUpsertHooks = append(ethnicGroupBeforeUpsertHooks, ethnicGroupHook)
	case boil.AfterInsertHook:
		ethnicGroupAfterInsertHooks = append(ethnicGroupAfterInsertHooks, ethnicGroupHook)
	case boil.AfterSelectHook:
		ethnicGroupAfterSelectHooks = append(ethnicGroupAfterSelectHooks, ethnicGroupHook)
	case boil.AfterUpdateHook:
		ethnicGroupAfterUpdateHooks = append(ethnicGroupAfterUpdateHooks, ethnicGroupHook)
	case boil.AfterDeleteHook:
		ethnicGroupAfterDeleteHooks = append(ethnicGroupAfterDeleteHooks, ethnicGroupHook)
	case boil.AfterUpsertHook:
		ethnicGroupAfterUpsertHooks = append(ethnicGroupAfterUpsertHooks, ethnicGroupHook)
	}
}
func AddEthnicGroupHook ( hookPoint boil . HookPoint , ethnicGroupHook EthnicGroupHook ) { switch hookPoint { case boil . BeforeInsertHook : ethnicGroupBeforeInsertHooks = append ( ethnicGroupBeforeInsertHooks , ethnicGroupHook ) case boil . BeforeUpdateHook : ethnicGroupBeforeUpdateHooks = append ( ethnicGroupBeforeUpdateHooks , ethnicGroupHook ) case boil . BeforeDeleteHook : ethnicGroupBeforeDeleteHooks = append ( ethnicGroupBeforeDeleteHooks , ethnicGroupHook ) case boil . BeforeUpsertHook : ethnicGroupBeforeUpsertHooks = append ( ethnicGroupBeforeUpsertHooks , ethnicGroupHook ) case boil . AfterInsertHook : ethnicGroupAfterInsertHooks = append ( ethnicGroupAfterInsertHooks , ethnicGroupHook ) case boil . AfterSelectHook : ethnicGroupAfterSelectHooks = append ( ethnicGroupAfterSelectHooks , ethnicGroupHook ) case boil . AfterUpdateHook : ethnicGroupAfterUpdateHooks = append ( ethnicGroupAfterUpdateHooks , ethnicGroupHook ) case boil . AfterDeleteHook : ethnicGroupAfterDeleteHooks = append ( ethnicGroupAfterDeleteHooks , ethnicGroupHook ) case boil . AfterUpsertHook : ethnicGroupAfterUpsertHooks = append ( ethnicGroupAfterUpsertHooks , ethnicGroupHook ) } }
AddEthnicGroupHook registers your hook function for all future operations.
AddEthnicGroupHook registers your hook function for all future operations .