Search in sources :

Example 1 with NomenclatureDAO

use of org.asqatasun.entity.dao.reference.NomenclatureDAO in project Asqatasun by Asqatasun.

the class NomenclatureDataServiceImpl method findByCode.

@Override
public Nomenclature findByCode(String code) {
    if (nomenclatureMapByCode.containsKey(code)) {
        return nomenclatureMapByCode.get(code);
    } else {
        Nomenclature nom = ((NomenclatureDAO) entityDao).retrieveByCode(code);
        nomenclatureMapByCode.put(code, nom);
        return nom;
    }
}
Also used : Nomenclature(org.asqatasun.entity.reference.Nomenclature) NomenclatureDAO(org.asqatasun.entity.dao.reference.NomenclatureDAO)

Aggregations

NomenclatureDAO (org.asqatasun.entity.dao.reference.NomenclatureDAO)1 Nomenclature (org.asqatasun.entity.reference.Nomenclature)1