finalImageGalleryimageGallery2=imageGalleryPersistence.findById(imageGallery.getId()).orElseThrow(()->newEntityNotFoundException("Record not found."));
imageGallery2.setTitle(title);
imageGallery2.setDescription(description);
...
...
@@ -254,7 +256,7 @@ public class ImageGalleryServiceImpl implements ImageGalleryService {
@Transactional
@PreAuthorize("hasRole('ADMINISTRATOR') or hasPermission(#imageGallery, 'write')")
finalImageGalleryimageGallery2=imageGalleryPersistence.findById(imageGallery.getId()).orElseThrow(()->newEntityNotFoundException("Record not found."));
finalImageGalleryimageGallery2=imageGalleryPersistence.findById(imageGallery.getId()).orElseThrow(()->newEntityNotFoundException("Record not found."));
finalImageGalleryimageGallery2=imageGalleryPersistence.findById(imageGallery.getId()).orElseThrow(()->newEntityNotFoundException("Record not found."));