]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/DocumentTypeServiceImpl.java
Salome HOME
Each document type now uses itself. So default uses iincludes documents of the type...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / DocumentTypeServiceImpl.java
index 33b15cf69f8ba509eac70e958feb9c109b801b3c..7a6d5e378ed0912745948315b4d91beb80f9bef1 100644 (file)
@@ -115,6 +115,7 @@ public class DocumentTypeServiceImpl implements DocumentTypeService {
                                Restrictions.eq("name", tprop.getName()));
                if (type == null) {
                        type = new DocumentType(tprop);
+                       type.getDefaultUses().add(type); //RKV
                        getDocumentTypeDAO().create(type);
                } else {
                        LOG.info(MessageKeyEnum.DCT_000001.toString(), tprop.getName());