Why is addScalar() used in the following Hibernate code:
Double max = (Double) sess.createSQLQuery("select max(b.weight) as maxWeight from books b")
.addScalar("maxWeight", Hibernate.DOUBLE);
.uniqueResult();
In Hibernate, consider the following table named employees: |emp_id | emp_name| |:-:||:-:| |1| Brush| |2| Jerrin|
What is the output of the following query: