You are on page 1of 1

public List<Rol> getRols() {

try {

List<Rol> lista = rolHibernateDAO.findAll();

List<Rol> listaResult = new ArrayList<Rol>();

for (Rol rol : lista) {

rol = (Rol) rolHibernateDAO.clone(rol, getThreadLocalRequest().getSession());

listaResult.add(rol);

return listaResult;

} catch (Exception e) {

e.printStackTrace();

return null;

You might also like