HQL (Hibernate query language) contains two types of parameters, Positioned parameters and Named parameters. But HQL suggests Named parameters as it is more powerful,and flexible as compared to Positioned parameters. As its name suggests in the Named parameter mechanism we can put a query in a variable and can use that variable. One of the biggest advantages of this mechanism is that you can use the same variable many times in the program which reduces your code.
There are various ways to implement Named parameter mechanism,
HQL is an advanced language than HQL, based on object oriented mechanisms. It uses objects to store the data. Named Parameter is one of those popular features which make HQL stronger. To implement features like this, you have to learn HQL properly. There are various options to learn HQL online.