use of org.orcid.persistence.jpa.entities.ProfileFundingEntity in project ORCID-Source by ORCID.
the class ProfileFundingDaoImpl method getProfileFundingEntity.
/**
* Get the funding associated with the given profileFunding id
*
* @param profileFundingId
* The id of the ProfileFundingEntity object
*
* @return the ProfileFundingEntity object
* */
@Override
public ProfileFundingEntity getProfileFundingEntity(Long profileFundingId) {
Query query = entityManager.createQuery("from ProfileFundingEntity where id=:id");
query.setParameter("id", profileFundingId);
return (ProfileFundingEntity) query.getSingleResult();
}
Aggregations