Salome HOME
Fix for removing a document with new attached file: ConvertsRelation was not removed...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / PublicationServiceImpl.java
index c0c408d1f953e0f29f200dfcaa150cb86bd1f9a7..98b0ef7ea6ca3fb36a7119dd7fda7f7d48a7a467 100644 (file)
@@ -691,6 +691,7 @@ public class PublicationServiceImpl implements PublicationService {
         *            the format
         * @return the created "Converts" relation
         */
+       @Transactional
        public ConvertsRelation attach(final Publication aPublication,
                        final String format) {
                return getDocumentService().attach(aPublication.value(), format);
@@ -707,6 +708,7 @@ public class PublicationServiceImpl implements PublicationService {
         *            the description of the relation
         * @return the created "Converts" relation
         */
+       @Transactional
        public ConvertsRelation attach(final Publication aPublication,
                        final String format, final String description) {
                return getDocumentService().attach(aPublication.value(), format,