List<SysEvents> listEvents= iSysEventsDao.getResultList(jpql, null, null);
List<SysAdherEvent> listAdherEvent=new ArrayList<SysAdherEvent>();
SysAdherEvent sysAdherEvent;
int i=1;
for(SysEvents events:listEvents){
sysAdherEvent=new SysAdherEvent(new SysAdherEventId(adherent.getIdAdherent(),events.getIdEvent()),adherent,events);
sysAdherEvent.setUseMontant("True");
sysAdherEvent.setPriorite(i++);
listAdherEvent.add(sysAdherEvent);
}
return listAdherEvent;