isFoundBySecondaryKey()
Ejemplo:
Rol rol = new Rol();
rol.setIdrol("admin");
if(rolRepository.isFoundByPrimaryKey(rol)){
//existe
}else{
// no existe
}Last updated
Rol rol = new Rol();
rol.setIdrol("admin");
if(rolRepository.isFoundByPrimaryKey(rol)){
//existe
}else{
// no existe
}Last updated