Hi Guys,
I have a strange problem, when I execute the code mentioned below the list contains repeated entires of first record only ... I tried using session.find() func to fetch all records which resulted in different records but large number of them still repeat...
query = session.createQuery("from XDataTO where stype = :var order by sleutel");
query.setString("var", "FUNC");
List list = query.list();
I am using RAD6.0 with DataSource accessed via JNDI (hibernate.cfg.xml)
I have exhausted various ways which hibernate provides to fetch data but everyone results in duplex objects..
Can anyone please issolate this issue for me or atleast point me in the right direction ?
Cheers
Andy
|