diff --git a/orcid-core/src/main/java/org/orcid/core/manager/v3/read_only/impl/ProfileEmailDomainManagerReadOnlyImpl.java b/orcid-core/src/main/java/org/orcid/core/manager/v3/read_only/impl/ProfileEmailDomainManagerReadOnlyImpl.java index dc97b2fb9c1..88d9cf453da 100644 --- a/orcid-core/src/main/java/org/orcid/core/manager/v3/read_only/impl/ProfileEmailDomainManagerReadOnlyImpl.java +++ b/orcid-core/src/main/java/org/orcid/core/manager/v3/read_only/impl/ProfileEmailDomainManagerReadOnlyImpl.java @@ -16,17 +16,17 @@ */ public class ProfileEmailDomainManagerReadOnlyImpl extends ManagerReadOnlyBaseImpl implements ProfileEmailDomainManagerReadOnly { @Resource - protected ProfileEmailDomainDao profileEmailDomainDao; + protected ProfileEmailDomainDao profileEmailDomainDaoReadOnly; public void setProfileEmailDomainDao(ProfileEmailDomainDao profileEmailDomainDao) { - this.profileEmailDomainDao = profileEmailDomainDao; + this.profileEmailDomainDaoReadOnly = profileEmailDomainDao; } public List getEmailDomains(String orcid) { - return profileEmailDomainDao.findByOrcid(orcid); + return profileEmailDomainDaoReadOnly.findByOrcid(orcid); }; public List getPublicEmailDomains(String orcid) { - return profileEmailDomainDao.findPublicEmailDomains(orcid); + return profileEmailDomainDaoReadOnly.findPublicEmailDomains(orcid); }; }