Repository: olingo-odata4 Updated Branches: refs/heads/master 744fe5774 -> 3eeffe6d2
[OLINGO-545] Empty entity sets added Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/3eeffe6d Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/3eeffe6d Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/3eeffe6d Branch: refs/heads/master Commit: 3eeffe6d299215b2cb01af5cdef74d5b4e9b300a Parents: 744fe57 Author: Christian Holzer <[email protected]> Authored: Wed Mar 11 11:18:55 2015 +0100 Committer: Christian Holzer <[email protected]> Committed: Wed Mar 11 11:18:55 2015 +0100 ---------------------------------------------------------------------- .../olingo/server/tecsvc/data/DataCreator.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/3eeffe6d/lib/server-tecsvc/src/main/java/org/apache/olingo/server/tecsvc/data/DataCreator.java ---------------------------------------------------------------------- diff --git a/lib/server-tecsvc/src/main/java/org/apache/olingo/server/tecsvc/data/DataCreator.java b/lib/server-tecsvc/src/main/java/org/apache/olingo/server/tecsvc/data/DataCreator.java index 1f0f491..1e4a707 100644 --- a/lib/server-tecsvc/src/main/java/org/apache/olingo/server/tecsvc/data/DataCreator.java +++ b/lib/server-tecsvc/src/main/java/org/apache/olingo/server/tecsvc/data/DataCreator.java @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -63,6 +63,21 @@ public class DataCreator { data.put("ESCompCollComp", createESCompCollComp()); data.put("ESServerSidePaging", createESServerSidePaging()); + // No data available but to allow an insert operation create empty EntitySets + data.put("ESAllNullable", new EntitySetImpl()); + data.put("ESMixEnumDefCollComp", new EntitySetImpl()); + data.put("ESTwoBase", new EntitySetImpl()); + data.put("ESBaseTwoKeyNav", new EntitySetImpl()); + data.put("ESBaseTwoKeyTwoPrim", new EntitySetImpl()); + data.put("ESTwoKeyTwoPrim", new EntitySetImpl()); + data.put("ESCompCollAllPrim", new EntitySetImpl()); + data.put("ESKeyTwoKeyComp", new EntitySetImpl()); + data.put("ESFourKeyAlias", new EntitySetImpl()); + data.put("ESBase", new EntitySetImpl()); + data.put("ESTwoBaseTwoKeyTwoPrim", new EntitySetImpl()); + data.put("ESInvisible", new EntitySetImpl()); + data.put("ESCompMixPrimCollComp", new EntitySetImpl()); + linkESTwoPrim(data); linkESAllPrim(data); linkESKeyNav(data);
