Apartado 3.6: Conceptos Avanzados de Hibernate
Apartado 3.6: Conceptos Avanzados de Hibernate
Apartado 3.6: Conceptos Avanzados de Hibernate
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Más sobre HQL – GROUP BY, HAVING (y 3)<br />
<br />
Otro ejemplo (cont)<br />
<br />
Constructor <strong>de</strong> DepartmentStatistics<br />
public DepartmentStatistics(String name,<br />
Long numberOfEmployees, Double averageSalary,<br />
Integer minimumSalary, Integer maximumSalary, Long totalSalary) {<br />
this.name = name;<br />
this.numberOfEmployees = numberOfEmployees;<br />
this.averageSalary =<br />
averageSalary == null 0 : averageSalary.floatValue();<br />
this.minimumSalary =<br />
minimumSalary == null 0 : minimumSalary;<br />
this.maximumSalary =<br />
maximumSalary == null 0 : maximumSalary;<br />
this.totalSalary =<br />
totalSalary == null 0 : totalSalary;<br />
}