-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/96 coffee modify annotation examples #97
base: main
Are you sure you want to change the base?
Conversation
#96 closed |
sampleStatus, | ||
inputValue, | ||
"updateAllSampleStatusAndInputValue", | ||
SampleEntity_.STATUS, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"
);
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formazas volt?
delta spike @query annotation update example for:
i-Cell-Mobilsoft-Open-Source/coffee#597