|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
@Documented
public @interface AutocompletedRetrieve the annotated object from the database, according to an autocompleted property (usually, its name). For example, if you prepare an autocompleter like this:
The customer.name request parameter will be intercepted and used to populate the customer property. If no customer.name request param is found, the interceptor will do nothing.\@Autocompleted(query="select Customer from Customer c where c.name=?", property="name") private Customer customer;
| Optional Element Summary | |
|---|---|
java.lang.String[] |
except
the list of events in which this validation does NOT place, empty for none. |
java.lang.String[] |
on
the list of events in which this validation takes place, empty for all. |
java.lang.String |
propertyName
the name of the autocompleted property, default "name" |
java.lang.String |
propertyPath
if provided, applies to the property path instead of the annotated property |
java.lang.String |
query
the query that will be launched to the database to retrieve the autocompleted entity. |
java.lang.String |
separatorTokens
the list of tokens that separate each value,empty for single value. |
public abstract java.lang.String propertyPath
public abstract java.lang.String[] on
public abstract java.lang.String[] except
public abstract java.lang.String propertyName
public abstract java.lang.String query
public abstract java.lang.String separatorTokens
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||