Annotation Interface QueryById


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface QueryById
Allows to perform lookups by the entities id.
        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.

  • Element Details

    • from

      Class<?> from
      Default:
      java.lang.Void.class
    • wherePermissions

      Class<?> wherePermissions
      Default:
      java.lang.Void.class