qualifier-key | qualifier-value | Comment |
---|---|---|
format | xml or json | default is xml |
plan | name of one or more fetch plan(s). Each name separated by comma character. | |
e.g. find/plan=onlyBasicFields?type=Person&1234 | ||
where onlyBasicFields is name of a pre-defined Fetch Group |
argument-key | argument-value | Comment |
---|---|---|
type | entity name | Fully-qualified Java class name or alias of the entity |
primary key value | can be used for simple identity without the id property name | |
e.g. /find?type=Person&1234 | ||
id property | primary key value | Used for compound primary keys |
e.g. /find?type=Person&firstName=John&lastName=Doe |
qualifier-key | qualifier-value | Comment |
---|---|---|
format | xml or json | default is xml |
plan | name of one or more fetch plan(s). Each name separated by comma character. | |
single | enforces single instance as query result | |
e.g. {{/query/single?q=select p from Person p where p.name=:x&x=John}} | ||
named | interprets the q argument value as a named query | |
e.g. /query/named?q=PersonByName&x=John | ||
where PersonByName is named query with x its named parameter |
argument-key | argument-value | Comment |
---|---|---|
q | JPQL or Named Query | e.g. /query/named?q=AllPerson |
or {{/query?q=select p from Person p}} | ||
e.g. {{/query?q=select p from Person p where p.firstName=:x&x=John}} | ||
bind parameter | parameter value | the values are converted to match the target type |
e.g. {{/query?q=select p from Person p where p.gender=:g&g=MALE}} |