newRattrTemplates.add(rAttrTemplate);
}
//Create derived attributes templates
for (AbstractDerAttr derAttr : role.getDerAttrs()) {
final RDerAttrTemplate rDerattrTemplate = new RDerAttrTemplate();
rDerattrTemplate.setOwner(role);
LOG.info("Creating template for role derived attribute {}", derAttr);
final String derSchemaName = jdbcTemplate.queryForObject(
"SELECT DERIVEDSCHEMA_NAME FROM RDerAttr WHERE id = ?;", String.class, derAttr.getId());
rDerattrTemplate.setSchema(derSchemaDAO.find(derSchemaName, RDerSchema.class));
newRDerattrTemplates.add(rDerattrTemplate);
}
//Create virtual attributes templates
for (AbstractVirAttr virAttr : role.getVirAttrs()) {