Fix issue in TemplateController and ProfileDAO due to new predefined users

Need to open transaction in ProfileDAO.findByProfileName() because of this
method is called via TemplateController (which is accessing the new predefined
        users).

The new predefined users with a profile are using the method
PredefinedProfiles.getFromDB() that is calling the ProfileDAO.

FEA: ItEr76S30PermissionsEnhancements
This commit is contained in:
Manuel Rego Casasnovas 2012-06-21 12:26:36 +02:00
parent bdf731d473
commit 699e8d5d85

View file

@ -65,6 +65,7 @@ public class ProfileDAO extends GenericDAOHibernate<Profile, Long> implements
}
@Override
@Transactional(readOnly = true)
public Profile findByProfileName(String profileName)
throws InstanceNotFoundException{