func AddEthnicSubgroupHook(hookPoint boil.HookPoint, ethnicSubgroupHook EthnicSubgroupHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		ethnicSubgroupBeforeInsertHooks = append(ethnicSubgroupBeforeInsertHooks, ethnicSubgroupHook)
	case boil.BeforeUpdateHook:
		ethnicSubgroupBeforeUpdateHooks = append(ethnicSubgroupBeforeUpdateHooks, ethnicSubgroupHook)
	case boil.BeforeDeleteHook:
		ethnicSubgroupBeforeDeleteHooks = append(ethnicSubgroupBeforeDeleteHooks, ethnicSubgroupHook)
	case boil.BeforeUpsertHook:
		ethnicSubgroupBeforeUpsertHooks = append(ethnicSubgroupBeforeUpsertHooks, ethnicSubgroupHook)
	case boil.AfterInsertHook:
		ethnicSubgroupAfterInsertHooks = append(ethnicSubgroupAfterInsertHooks, ethnicSubgroupHook)
	case boil.AfterSelectHook:
		ethnicSubgroupAfterSelectHooks = append(ethnicSubgroupAfterSelectHooks, ethnicSubgroupHook)
	case boil.AfterUpdateHook:
		ethnicSubgroupAfterUpdateHooks = append(ethnicSubgroupAfterUpdateHooks, ethnicSubgroupHook)
	case boil.AfterDeleteHook:
		ethnicSubgroupAfterDeleteHooks = append(ethnicSubgroupAfterDeleteHooks, ethnicSubgroupHook)
	case boil.AfterUpsertHook:
		ethnicSubgroupAfterUpsertHooks = append(ethnicSubgroupAfterUpsertHooks, ethnicSubgroupHook)
	}
}
// AddEthnicSubgroupHook registers your hook function for all future operations.
AddEthnicSubgroupHook registers your hook function for all future operations.
// AddEthnicSubgroupHook registers your hook function for all future operations .
func AddEthnicSubgroupHook(hookPoint boil.HookPoint, ethnicSubgroupHook EthnicSubgroupHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		ethnicSubgroupBeforeInsertHooks = append(ethnicSubgroupBeforeInsertHooks, ethnicSubgroupHook)
	case boil.BeforeUpdateHook:
		ethnicSubgroupBeforeUpdateHooks = append(ethnicSubgroupBeforeUpdateHooks, ethnicSubgroupHook)
	case boil.BeforeDeleteHook:
		ethnicSubgroupBeforeDeleteHooks = append(ethnicSubgroupBeforeDeleteHooks, ethnicSubgroupHook)
	case boil.BeforeUpsertHook:
		ethnicSubgroupBeforeUpsertHooks = append(ethnicSubgroupBeforeUpsertHooks, ethnicSubgroupHook)
	case boil.AfterInsertHook:
		ethnicSubgroupAfterInsertHooks = append(ethnicSubgroupAfterInsertHooks, ethnicSubgroupHook)
	case boil.AfterSelectHook:
		ethnicSubgroupAfterSelectHooks = append(ethnicSubgroupAfterSelectHooks, ethnicSubgroupHook)
	case boil.AfterUpdateHook:
		ethnicSubgroupAfterUpdateHooks = append(ethnicSubgroupAfterUpdateHooks, ethnicSubgroupHook)
	case boil.AfterDeleteHook:
		ethnicSubgroupAfterDeleteHooks = append(ethnicSubgroupAfterDeleteHooks, ethnicSubgroupHook)
	case boil.AfterUpsertHook:
		ethnicSubgroupAfterUpsertHooks = append(ethnicSubgroupAfterUpsertHooks, ethnicSubgroupHook)
	}
}
func AddEthnicSubgroupHook ( hookPoint boil . HookPoint , ethnicSubgroupHook EthnicSubgroupHook ) { switch hookPoint { case boil . BeforeInsertHook : ethnicSubgroupBeforeInsertHooks = append ( ethnicSubgroupBeforeInsertHooks , ethnicSubgroupHook ) case boil . BeforeUpdateHook : ethnicSubgroupBeforeUpdateHooks = append ( ethnicSubgroupBeforeUpdateHooks , ethnicSubgroupHook ) case boil . BeforeDeleteHook : ethnicSubgroupBeforeDeleteHooks = append ( ethnicSubgroupBeforeDeleteHooks , ethnicSubgroupHook ) case boil . BeforeUpsertHook : ethnicSubgroupBeforeUpsertHooks = append ( ethnicSubgroupBeforeUpsertHooks , ethnicSubgroupHook ) case boil . AfterInsertHook : ethnicSubgroupAfterInsertHooks = append ( ethnicSubgroupAfterInsertHooks , ethnicSubgroupHook ) case boil . AfterSelectHook : ethnicSubgroupAfterSelectHooks = append ( ethnicSubgroupAfterSelectHooks , ethnicSubgroupHook ) case boil . AfterUpdateHook : ethnicSubgroupAfterUpdateHooks = append ( ethnicSubgroupAfterUpdateHooks , ethnicSubgroupHook ) case boil . AfterDeleteHook : ethnicSubgroupAfterDeleteHooks = append ( ethnicSubgroupAfterDeleteHooks , ethnicSubgroupHook ) case boil . AfterUpsertHook : ethnicSubgroupAfterUpsertHooks = append ( ethnicSubgroupAfterUpsertHooks , ethnicSubgroupHook ) } }
AddEthnicSubgroupHook registers your hook function for all future operations.
AddEthnicSubgroupHook registers your hook function for all future operations .