@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface QueryById
QueryById
public AbstractReportManagerNode getNodeById(long id) {
return null; // by magic
}
This code snipped will perform a query
FROM AbstractReportManagerNode where idField = :id
Note that if from is not specified it, the return type is examined and taken as from.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?> |
from |
java.lang.Class<?> |
wherePermissions |