boolean resultado = false;
try {
em = emf.createEntityManager();
Actividad actividad = null;
Query q = em.createQuery("SELECT a FROM Actividad a WHERE a.calendarioacademico.strCodcalendario='2011' " +
"and a.intCodigoActividad=1 and (CURRENT_DATE between a.dtFecIni and a.dtFecFin)");
//q.setParameter(1, codigoCalendario);
//q.setParameter(2, 1);