When updating a Managed Entity data is not directly reflect to DB, so I'm using evict in Hibernate. The exception I'm getting is the detached entity passed to persist.
MobeeAgent agent= agentsList.get(rowIndex);
BeanUtils.copyProperties(agent, doMobeeAgent);
agentsList.set(rowIndex, agent);
((Session)getEntityManager().getDelegate()).evict(agentsList.get(rowIndex));
Regards
Nag.