Commit 0de5d66e authored by terrymanu's avatar terrymanu
Browse files

add UnsupportedOperationException for JPA

parent 17bb5923
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -35,13 +35,19 @@ public class OrderItemRepositoryImpl implements OrderItemRepository {
    private EntityManager entityManager;
    
    @Override
    public void createTableIfNotExists() {}
    public void createTableIfNotExists() {
        throw new UnsupportedOperationException("createTableIfNotExists for JPA");
    }
    
    @Override
    public void truncateTable() {}
    public void truncateTable() {
        throw new UnsupportedOperationException("truncateTable for JPA");
    }
    
    @Override
    public void dropTable() {}
    public void dropTable() {
        throw new UnsupportedOperationException("dropTable for JPA");
    }
    
    @Override
    public Long insert(final OrderItem entity) {
+9 −3
Original line number Diff line number Diff line
@@ -35,13 +35,19 @@ public class OrderRepositoryImpl implements OrderRepository {
    private EntityManager entityManager;
    
    @Override
    public void createTableIfNotExists() {}
    public void createTableIfNotExists() {
        throw new UnsupportedOperationException("createTableIfNotExists for JPA");
    }
    
    @Override
    public void truncateTable() {}
    public void truncateTable() {
        throw new UnsupportedOperationException("truncateTable for JPA");
    }
    
    @Override
    public void dropTable() {}
    public void dropTable() {
        throw new UnsupportedOperationException("dropTable for JPA");
    }
    
    @Override
    public Long insert(final Order entity) {