Annotation 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
-
Element Details
-
value
String valueSpecifies the name of the parameter.- Returns:
- the name of the parameter
-