Skip to content

Feature/96 coffee modify annotation examples#97

Open
sisak wants to merge 2 commits intomainfrom
feature/96_coffee_modify_annotation_examples
Open

Feature/96 coffee modify annotation examples#97
sisak wants to merge 2 commits intomainfrom
feature/96_coffee_modify_annotation_examples

Conversation

@sisak
Copy link
Copy Markdown

@sisak sisak commented Feb 2, 2024

delta spike @query annotation update example for:
i-Cell-Mobilsoft-Open-Source/coffee#597

@sisak
Copy link
Copy Markdown
Author

sisak commented Feb 2, 2024

#96 closed

@speter555 speter555 linked an issue Feb 3, 2024 that may be closed by this pull request
sampleStatus,
inputValue,
"updateAllSampleStatusAndInputValue",
SampleEntity_.STATUS,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*Service szinten nem szabad hogy legyen barmi rejtett logika, mindent az action szinten keresunk

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A SampleEntity_.STATUS ban csak az entity field neve van stringként generálva az entityből. Így változás biztos.
A két kódrészlet egyenlő:

 return wrapValidated(
                sampleEntityRepository::updateAllSampleStatusAndInputValue,
                sampleStatus,
                inputValue,
                "updateAllSampleStatusAndInputValue",
                "status",
                "inputValue"
        );
 

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapValidated parametereit eredetileg arra szantuk hogy a valos metodus valtozo neveit irja ki a logokban. Logikailag helyes ahogy irod, mivel a vegso mezo neve a entityben SampleEntity_.STATUS csak a metodusban az ehhez tartozo valtozo neve "sampleStatus". Ez most csak tenyleg aprosag, de igy keressuk a logokban mashol is.

/**
* update all sampleEntity by params
*
* @param status status
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formazas volt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new jpql update examples

6 participants