As the subject line says.
Telling that we have advantage of using shortened form of query when we retrieve all columns from a table is just too small a reason to have and use HQL.
HQL query:
SQL query:
The only advantage I can see is that in HQL we don't use "select *". So in HQL we use two words less. Now, is this advantage really and advantage? If there is any other advantage let me know.
Telling that we have advantage of using shortened form of query when we retrieve all columns from a table is just too small a reason to have and use HQL.
HQL query:
Code:
From Employee
Code:
select * from Employee