<commit_before>package fi.nls.oskari.control.users.service;

import fi.nls.oskari.control.users.model.Email;
import fi.nls.oskari.service.db.BaseIbatisService;

public class IbatisEmailService  extends BaseIbatisService<Email>{

	@Override
	protected String getNameSpace() {
		return "Emails";
	}

	public Long addEmail(Email email) {
        return queryForObject(getNameSpace() + ".addEmail", email);
    }
}<commit_msg>Finding email based on uuid is added<commit_after>package fi.nls.oskari.control.users.service;

import fi.nls.oskari.control.users.model.Email;
import fi.nls.oskari.service.db.BaseIbatisService;

public class IbatisEmailService  extends BaseIbatisService<Email>{

	@Override
	protected String getNameSpace() {
		return "Emails";
	}

	public Long addEmail(Email email) {
        return queryForObject(getNameSpace() + ".addEmail", email);
    }
	
	public Email findByToken(String uuid) {
        return queryForObject(getNameSpace() + ".findByToken", uuid);
    }
}
{'fraction_non_alphanumeric': 0.11156186612576065, 'fraction_numerical': 0.0, 'mean_word_length': 4.672413793103448, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5632687', 'n_tokens_mistral': 329, 'n_tokens_neox': 323, 'n_words': 64}