@@ -0,0 +1,2069 @@
+/*%0A * Copyright 2015, 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 lobby.registration;%0A%0Aimport lobby.contracts.common.OrderId;%0Aimport lobby.registration.service.OrderPricingService;%0Aimport org.spine3.server.aggregate.AggregateRepositoryBase;%0A%0Aimport javax.annotation.Nonnull;%0A%0A/**%0A * The repository for order aggregate roots.%0A *%0A * @see OrderAggregate%0A * @see AggregateRepositoryBase%0A * @author Alexander Litus%0A */%0Apublic class OrderRepository extends AggregateRepositoryBase%3COrderId, OrderAggregate%3E %7B%0A%0A    private final OrderPricingService orderPricingService;%0A%0A    /**%0A     * Creates a new repository instance.%0A     *%0A     * @param orderPricingService the pricing service to inject to order aggregate roots%0A     */%0A    public OrderRepository(OrderPricingService orderPricingService) %7B%0A        super();%0A        this.orderPricingService = orderPricingService;%0A    %7D%0A%0A    @Nonnull%0A    @Override%0A    public OrderAggregate load(OrderId id) throws IllegalStateException %7B%0A        final OrderAggregate order = super.load(id);%0A        order.setOrderPricingService(orderPricingService);%0A        return order;%0A    %7D%0A%7D%0A

Add order repo.