Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sisak
Copy link

@sisak sisak commented Feb 2, 2024

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

@sisak
Copy link
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
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
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
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
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