Annotation Interface Param


@Target(PARAMETER) @Retention(RUNTIME) public @interface Param
Indicates that the annotated parameter is a named parameter for a method or constructor. Example usage: public interface UserRepository extends BibernateRepository<User, Long>{ User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password); } In this example, the 'findByUsernameAndPassword' method in the 'UserRepository' interface is annotated with '@Param' for each parameter, indicating that they are named parameters. These named parameters are then used in the query method.
Since:
1.0
Author:
Blyzhnytsia Team
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the name of the parameter.
  • Element Details

    • value

      String value
      Specifies the name of the parameter.
      Returns:
      the name of the parameter