Example #1
0
  public VolumeManagement insertVolume(final VolumeManagement volume) {
    rasdDAO.persist(volume.getRasd());
    volumeDAO.persist(volume);
    volumeDAO.flush();

    return volume;
  }
Example #2
0
 public void insertHardDisk(final DiskManagement createdDisk) {
   if (createdDisk.getRasd() != null) {
     rasdDAO.persist(createdDisk.getRasd());
   }
   diskManagementDAO.persist(createdDisk);
 }