Hi there,
I have the following query in Oracle SQL:
Code:
SELECT COUNT(dv.pk_id),
MIN(dv.date_time) ,
MAX(dv.date_time) ,
s.name ,
s.pk_id,
dv.fk1_id
FROM data_values dv, sites s
WHERE dv.fk2_id = s.pk_id
AND dv.date_time BETWEEN to_date('1900-01-01','YYYY-MM-DD') AND to_date('2009-07-31','YYYY-MM-DD')
GROUP BY s.site_name,s.pk_id,
dv.fk1_id
Which is the procedure to create a mapping between this query and a new class?
Table sites is already mapped. The query above works fine and returns a List of basic objects with no getters of course.
Thanks in advance.