@@ -0,0 +1,894 @@
+package com.alcedomoreno.sirme.core.dao.common;%0A%0Aimport java.io.Serializable;%0Aimport java.util.List;%0A%0Aimport org.springframework.beans.factory.config.ConfigurableBeanFactory;%0Aimport org.springframework.context.annotation.Scope;%0Aimport org.springframework.stereotype.Repository;%0A%0A/**%0A * Clase gen%C3%A9rica para operaciones sobre bd%0A * @param %3CT%3E entidad con la que se extiende la clase%0A */%0A@Repository%0A@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)%0Apublic class GenericHibernateDao%3CT extends Serializable%3E extends AbstractHibernateDao%3CT%3E%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09 implements GenericDao%3CT%3E %7B%0A%0A%09@SuppressWarnings(%22unchecked%22)%0A%09@Override%0A%09public List%3CT%3E loadAll(Class%3CT%3E clazz) %7B%0A%09%09return getCurrentSession().createQuery(%22FROM %22 + clazz.getName()).list();%0A%09%7D%0A%0A%09@SuppressWarnings(%22unchecked%22)%0A%09@Override%0A%09public T findById(Class%3CT%3E clazz, Serializable id) %7B%0A%09%09return (T) getCurrentSession().get(clazz, id);%0A%09%7D%0A%0A%7D%0A

Create GenericHibernateDao.java