func (m *GormAreaRepository) Load(ctx context.Context, id uuid.UUID) (*Area, error) {
	defer goa.MeasureSince([]string{"goa", "db", "Area", "get"}, time.Now())
	var obj Area

	tx := m.db.Where("id = ?", id).First(&obj)
	if tx.RecordNotFound() {
		return nil, errors.NewNotFoundError("Area", id.String())
	}
	if tx.Error != nil {
		return nil, errors.NewInternalError(tx.Error.Error())
	}
	return &obj, nil
}
// Load a single Area regardless of parent
Load a single Area regardless of parent
// Load a single Area regardless of parent
func (m *GormAreaRepository) Load(ctx context.Context, id uuid.UUID) (*Area, error) {
	defer goa.MeasureSince([]string{"goa", "db", "Area", "get"}, time.Now())
	var obj Area
	tx := m.db.Where("id = ?", id).First(&obj)
	if tx.RecordNotFound() {
		return nil, errors.NewNotFoundError("Area", id.String())
	}
	if tx.Error != nil {
		return nil, errors.NewInternalError(tx.Error.Error())
	}
	return &obj, nil
}
func ( m * GormAreaRepository ) Load ( ctx context . Context , id uuid . UUID ) ( * Area , error ) { defer goa . MeasureSince ( [ ] string { " " , " " , " " , " " } , time . Now ( ) ) var obj Area tx := m . db . Where ( " " , id ) . First ( & obj ) if tx . RecordNotFound ( ) { return nil , errors . NewNotFoundError ( " " , id . String ( ) ) } if tx . Error != nil { return nil , errors . NewInternalError ( tx . Error . Error ( ) ) } return & obj , nil }
Load a single Area regardless of parent
Load a single Area regardless of parent