コード例 #1
0
  @Override
  public EEATVolume obterEEATVolume(Integer codigo) throws Exception {
    TypedQuery<EEATVolume> query =
        entity.createQuery(
            "select c1 from EEATVolume c1 where eatv_id = " + codigo, EEATVolume.class);
    EEATVolume eeatvolume = query.getSingleResult();

    EEATVolume EEATVolume = eeatvolume;
    for (int j = 0; j < EEATVolume.getVolumeEntrada().size(); j++) {
      eeatvolume.getVolumeEntrada().get(j);
    }

    for (int j = 0; j < EEATVolume.getVolumeSaida().size(); j++) {
      eeatvolume.getVolumeSaida().get(j);
    }

    return eeatvolume;
  }
コード例 #2
0
 @Override
 public void excluir(EEATVolume obj) {
   EEATVolume objRemover = entity.find(EEATVolume.class, obj.getCodigo());
   entity.remove(objRemover);
 }