Ljava.lang.Object; cannot be cast to com.duncansolutions.databus.bean.Fdjobs
<p>In my code</p>

<pre><code> List&lt;Fdjobs&gt; fdjobs=new ArrayList&lt;Fdjobs&gt;();
        fdjobs = (ArrayList&lt;Fdjobs&gt;)genericDao.namedQuery(Fdjobs.QUERYJOBS, hm);
Integer deactivateValue=new Integer(0);
 for (Fdjobs job : fdjobs) {
            job.setActiveJob(deactivateValue);
            job.addFDJobHistory();
            genericDao.update(job);

        }
</code></pre>

<p>if the size of the result list fdjobs is zero i dont get ant error but if the size is more than zero i am getting the error </p>

<pre><code>[Ljava.lang.Object; cannot be cast to com.duncansolutions.databus.bean.Fdjobs
</code></pre>
