func (r *GormWorkItemLinkRepository) Load(ctx context.Context, ID uuid.UUID) (*WorkItemLink, error) {
	log.Info(ctx, map[string]interface{}{
		"wil_id": ID,
	}, "Loading work item link")
	result := WorkItemLink{}
	db := r.db.Where("id=?", ID).Find(&result)
	if db.RecordNotFound() {
		log.Error(ctx, map[string]interface{}{
			"wil_id": ID,
		}, "work item link not found")
		return nil, errors.NewNotFoundError("work item link", ID.String())
	}
	if db.Error != nil {
		return nil, errors.NewInternalError(db.Error.Error())
	}
	return &result, nil
}
// Load returns the work item link for the given ID.
// Returns NotFoundError, ConversionError or InternalError
Load returns the work item link for the given ID.
Returns NotFoundError, ConversionError or InternalError
// Load returns the work item link for the given ID . // Returns NotFoundError ConversionError or InternalError
func (r *GormWorkItemLinkRepository) Load(ctx context.Context, ID uuid.UUID) (*WorkItemLink, error) {
	log.Info(ctx, map[string]interface{}{
		"wil_id": ID,
	}, "Loading work item link")
	result := WorkItemLink{}
	db := r.db.Where("id=?", ID).Find(&result)
	if db.RecordNotFound() {
		log.Error(ctx, map[string]interface{}{
			"wil_id": ID,
		}, "work item link not found")
		return nil, errors.NewNotFoundError("work item link", ID.String())
	}
	if db.Error != nil {
		return nil, errors.NewInternalError(db.Error.Error())
	}
	return &result, nil
}
func ( r * GormWorkItemLinkRepository ) Load ( ctx context . Context , ID uuid . UUID ) ( * WorkItemLink , error ) { log . Info ( ctx , map [ string ] interface { } { " " : ID , } , " " ) result := WorkItemLink { } db := r . db . Where ( " " , ID ) . Find ( & result ) if db . RecordNotFound ( ) { log . Error ( ctx , map [ string ] interface { } { " " : ID , } , " " ) return nil , errors . NewNotFoundError ( " " , ID . String ( ) ) } if db . Error != nil { return nil , errors . NewInternalError ( db . Error . Error ( ) ) } return & result , nil }
Load returns the work item link for the given ID.
Load returns the work item link for the given ID .