This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository tutti. See http://git.codelutin.com/tutti.git commit ded5f75bbcbda4cb94469546380151cd44dc0c95 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Mar 27 18:21:46 2015 +0100 delete pj before deleting catch batch --- .../service/FishingOperationPersistenceServiceImpl.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/FishingOperationPersistenceServiceImpl.java b/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/FishingOperationPersistenceServiceImpl.java index 7d8fcc2..0b556f3 100644 --- a/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/FishingOperationPersistenceServiceImpl.java +++ b/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/FishingOperationPersistenceServiceImpl.java @@ -521,6 +521,11 @@ public class FishingOperationPersistenceServiceImpl extends AbstractPersistenceS throw new DataRetrievalFailureException("Could not retrieve fishing operation with id=" + fishingOperationId); } + attachmentPersistenceService.deleteAllAttachment( + ObjectTypeCode.OPERATION, + fishingOperationId); + getCurrentSession().flush(); + // delete catch batch catchBatchService.deleteCatchBatch(id); getCurrentSession().flush(); @@ -619,9 +624,9 @@ public class FishingOperationPersistenceServiceImpl extends AbstractPersistenceS getCurrentSession().flush(); - attachmentPersistenceService.deleteAllAttachment( - ObjectTypeCode.OPERATION, - fishingOperationId); +// attachmentPersistenceService.deleteAllAttachment( +// ObjectTypeCode.OPERATION, +// fishingOperationId); } //------------------------------------------------------------------------// -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.