Why "pm.newQuery(Employee.class)" and not "pm.newQuery(Employee)" in JDO?
- by Dieter Gantz
In this JDO, why is .class needed here?
Query averageSalaryQuery = pm.newQuery(Employee.class);
I would prefer to write this more concise syntax if possible?
Query averageSalaryQuery = pm.newQuery(Employee);