func (m *GormUserRepository) Load(ctx context.Context, id uuid.UUID) (*User, error) {
	defer goa.MeasureSince([]string{"goa", "db", "user", "load"}, time.Now())

	var native User
	err := m.db.Table(m.TableName()).Where("id = ?", id).Find(&native).Error
	if err == gorm.ErrRecordNotFound {
		return nil, nil
	}

	return &native, errors.WithStack(err)
}
// Load returns a single User as a Database Model
// This is more for use internally, and probably not what you want in  your controllers
Load returns a single User as a Database Model
This is more for use internally, and probably not what you want in  your controllers
// Load returns a single User as a Database Model // This is more for use internally and probably not what you want in your controllers
func (m *GormUserRepository) Load(ctx context.Context, id uuid.UUID) (*User, error) {
	defer goa.MeasureSince([]string{"goa", "db", "user", "load"}, time.Now())
	var native User
	err := m.db.Table(m.TableName()).Where("id = ?", id).Find(&native).Error
	if err == gorm.ErrRecordNotFound {
		return nil, nil
	}
	return &native, errors.WithStack(err)
}
func ( m * GormUserRepository ) Load ( ctx context . Context , id uuid . UUID ) ( * User , error ) { defer goa . MeasureSince ( [ ] string { " " , " " , " " , " " } , time . Now ( ) ) var native User err := m . db . Table ( m . TableName ( ) ) . Where ( " " , id ) . Find ( & native ) . Error if err == gorm . ErrRecordNotFound { return nil , nil } return & native , errors . WithStack ( err ) }
Load returns a single User as a Database Model
This is more for use internally, and probably not what you want in  your controllers
Load returns a single User as a Database Model This is more for use internally and probably not what you want in your controllers