public VolumeManagement insertVolume(final VolumeManagement volume) { rasdDAO.persist(volume.getRasd()); volumeDAO.persist(volume); volumeDAO.flush(); return volume; }
public void insertHardDisk(final DiskManagement createdDisk) { if (createdDisk.getRasd() != null) { rasdDAO.persist(createdDisk.getRasd()); } diskManagementDAO.persist(createdDisk); }