-
Notifications
You must be signed in to change notification settings - Fork 30
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
[clarification]: query by method name method parameters #576
Comments
Signed-off-by: Nathan Rauh <[email protected]>
I remember needing to ask what that meant as well when I wanted to write valid examples of it to put in module-info. If it doesn't make sense to the authors of the spec, it won't make sense to users either and we should fix it. I included at least part of an attempt at that in #577 |
The JavaDoc in module-info is intended as a quick reference for application developers and often relies on tables and examples that you can copy from to try to visually get the point across. If the information is missing from the specification document, we should make sure to add it there. |
The table of Query by Method Name keywords reserved for the predicate in module-info was supposed to get across some of that information in a general sense. Here is the information that is currently there for Keyword: Applies to: numeric, strings, time Description: Requires that the entity's attribute value be within the range specified by two parameters, inclusive of the parameters. The minimum is listed first, then the maximum. Example: One deficiency here is that we never define what "numeric", "strings", and "time" actually mean. We should be more precise and do that. The description should probably say "...inclusive of the parameter values..." If adequate information about these keywords and the parameters for them isn't in the specification doc, it needs to be added. |
But also:
Actually this particular issue if more of a failing of section 3.1.3 (Basic Types), which should say that Data considers |
Signed-off-by: Nathan Rauh <[email protected]>
Alright, so from the TCK I have learned that apparently the parameter type corresponding to |
Signed-off-by: Nathan Rauh <[email protected]>
Specification
Query by Method Name
I need clarification on ...
The relationship between Query by Method Name operators and the parameters of the repository method.
Additional information
If we're going to keep this as a required part of the spec [now that we have JDQL,
@Query
, and@Find
properly nailed down, I'm ready to have a probably-difficult conversation about that], then we at least need to make sure that this facility is fully-specified.Reviewing this, it does seem to be mostly sorta OK, but:
module-info
, in a very sketchy format, and not in the spec itself, andIn
andBetween
.So there is at least some work to do here.
Also I'm also not sure I understand how to interpret shorthands like
OrderBy____(Asc|Desc)*(Asc |Desc)
. Actually that might just be an error.The text was updated successfully, but these errors were encountered: