package uk.ac.ox.zoo.seeg.abraid.mp.common.dao;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import uk.ac.ox.zoo.seeg.abraid.mp.common.domain.Expert;

/**
 * The Expert entity's Data Access Object.
 *
 * Copyright (c) 2014 University of Oxford
 */
@Repository
public class ExpertDaoImpl extends AbstractDao<Expert, Integer> implements ExpertDao {

    /**
<<<<<<< Updated upstream
     * Gets an expert by name.
     * @param name The name.
     * @return The expert, or null if not found.
     * @throws org.springframework.dao.DataAccessException if multiple experts with this name are found (should not
     * occur as names are unique)
=======
     * Gets an expert by email address.
     * @param email The email address.
     * @return The expert, or null if not found.
     * @throws org.springframework.dao.DataAccessException if multiple experts with this email address are found
     * (should not occur as emails are unique)
>>>>>>> Stashed changes
     */
    @Override
    public Expert getByEmail(String email) {
        Query query = namedQuery("getExpertByEmail");
        query.setString("email", email);
        return uniqueResult(query);
    }

}

@@ -387,300 +387,8 @@
 /**%0A
-%3C%3C%3C%3C%3C%3C%3C Updated upstream%0A     * Gets an expert by name.%0A     * @param name The name.%0A     * @return The expert, or null if not found.%0A     * @throws org.springframework.dao.DataAccessException if multiple experts with this name are found (should not%0A     * occur as names are unique)%0A=======%0A
     
@@ -675,32 +675,8 @@
 ue)%0A
-%3E%3E%3E%3E%3E%3E%3E Stashed changes%0A
     

Resolve conflict