/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * Licensed 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 KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */

package io.shardingsphere.example.repository.jpa.repository;

import io.shardingsphere.example.repository.jpa.entity.OrderItem;

import java.util.List;

public interface OrderItemRepository {
    
    Long insert(OrderItem orderItemId);
    
    void delete(Long orderItemId);
    
    List<OrderItem> selectAll();
}

@@ -675,16 +675,87 @@
 itory;%0A%0A
+import io.shardingsphere.example.repository.api.repository.Repository;%0A
 import i
@@ -801,16 +801,19 @@
 .entity.
+JPA
 OrderIte
@@ -881,14 +881,61 @@
 ory 
-%7B%0A    
+extends Repository%3CJPAOrderItem%3E %7B%0A    %0A    @Override
 %0A   
@@ -947,16 +947,19 @@
  insert(
+JPA
 OrderIte
@@ -960,17 +960,20 @@
 derItem 
-o
+JPAO
 rderItem
@@ -990,43 +990,17 @@
     
-void delete(Long orderItemId);%0A    
+@Override
 %0A   
@@ -1005,16 +1005,19 @@
    List%3C
+JPA
 OrderIte

extend Repository<JPAOrderItem>