Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package sk.seges.acris.reporting.server.dao.hibernate;
 
 
 
@Repository("reportDescriptionDao")
public class ReportDescriptionDao extends AbstractHibernateCRUD<ReportDescriptionimplements
		super(ReportDescription.class);
	}
		return super.findUnique(page);
	}
	@PersistenceContext(unitName = "acrisEntityManagerFactory")
	public void setEntityManager(EntityManager em) {
		super.setEntityManager(em);
	}
	//
	// /* (non-Javadoc)
	// * @see
	// sk.seges.hroddelenie.dao.reporting.IReportDescription#findById(java.lang.Long)
	// */
	// public ReportDescription findById(Long id) {
	// DetachedCriteria criteria = createCriteria();
	// criteria.add(Restrictions.eq(ReportDescriptionData.ID_ATTR, id));
	// return findUniqueResultByCriteria(criteria);
	// }
	//
	// @SuppressWarnings("unchecked")
	// @Override
	// public List<ReportDescription> findByName(String name) {
	// DetachedCriteria criteria = createCriteria();
	// criteria.add(Restrictions.eq(ReportDescriptionData.NAME_ATTR, name));
	// return criteria.getExecutableCriteria((Session)
	// entityManager.getDelegate()).list();
	// }
		return new ReportDescription();
	}
		entity.setId(null);
		return super.persist(entity);
	}
		ReportDescription rd = super.findEntity(entity);
		if (rd.getParametersList() != null) {
else {
		}
		return rd;
	}
New to GrepCode? Check out our FAQ X