class NotificationTemplateDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public NotificationTemplate createNotificationTemplate(NotificationTemplate notificationTemplate) {
        getNamedParameterJdbcTemplate().update(createNotificationTemplateQuery,
                NotificationTemplateParameters.getParameters(notificationTemplate));
        return notificationTemplate;
    }

}