@@ -0,0 +1,2516 @@
+/*%0A * Copyright 2017, TeamDev Ltd. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage org.spine3.server.storage.datastore;%0A%0Aimport com.google.cloud.datastore.Entity;%0A%0A/**%0A * The container for all the field names we declare in the storage's %7B@link Entity entities%7D.%0A *%0A * %3Cp%3ERepresented by a set of enum containers having their %7B@link Enum#toString toString()%7D method overloaded.%0A *%0A * %3Cp%3EThe values are grouped by their primary usage scope. Though, some of them are used to widely. Those that do are%0A * grouped in a separate enum %E2%80%94 %7B@link CommonFields%7D.%0A *%0A * @author Dmytro Dashenkov.%0A */%0Aclass EntityFields %7B%0A%0A    enum AggregateFields %7B%0A%0A        AGGREGATE_ID;%0A%0A        @Override%0A        public String toString() %7B%0A            return name().toLowerCase();%0A        %7D%0A    %7D%0A%0A    enum EventFields %7B%0A%0A        PRODUCER_ID,%0A        EVENT_ID,%0A        EVENT_TYPE;%0A%0A        @Override%0A        public String toString() %7B%0A            return name().toLowerCase();%0A        %7D%0A    %7D%0A%0A    enum EventContextFields %7B%0A%0A        CONTEXT_EVENT_ID,%0A        CONTEXT_TIMESTAMP,%0A        CONTEXT_OF_COMMAND,%0A        CONTEXT_VERSION;%0A%0A        @Override%0A        public String toString() %7B%0A            return name().toLowerCase();%0A        %7D%0A    %7D%0A%0A    enum EntityStateFields %7B%0A%0A        ARCHIVED,%0A        DELETED;%0A%0A        @Override%0A        public String toString() %7B%0A            return name().toLowerCase();%0A        %7D%0A    %7D%0A%0A    enum CommonFields %7B%0A%0A        TIMESTAMP,%0A        TIMESTAMP_NANOS;%0A%0A        @Override%0A        public String toString() %7B%0A            return name().toLowerCase();%0A        %7D%0A    %7D%0A%7D%0A

Add `EntityFields` container for storing entity field names.