fix #7591 ReferencePropertyDefinitions adding 'General' and using 'all' as default
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Fri, 27 Jul 2018 19:08:32 +0000 (21:08 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Fri, 27 Jul 2018 19:09:31 +0000 (21:09 +0200)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/ReferencePropertyDefinitions.java

index 4c46b5b00ebbf062cf0c40fe35a0caa70e1146f0..fff696dd397520cdea229a9c043845106aaecd9c 100644 (file)
@@ -136,33 +136,33 @@ public class ReferencePropertyDefinitions {
         case BookSection:
             return iBookSection;
         case CdDvd:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case Database:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case Generic:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case InProceedings:
             return iInProceedings;
         case Journal:
             return iJournal;
         case Map:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case Patent:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case PersonalCommunication:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case PrintSeries:
             return iPublicationBase;
         case Proceedings:
             return iProceedings;
         case Report:
-            throw new UnimplemetedCaseException(type);
+            return all;
         case Section:
             return iSection;
         case Thesis:
             return iThesis;
         case WebPage:
-            throw new UnimplemetedCaseException(type);
+            return all;
         default:
             return all;
         }