// Copyright 2017 Purcell Informatics Limited
//
// See the LICENCE file distributed with this work for additional
// information regarding copyright ownership.
//
// 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.
package com.robbyp.finances.data;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

import com.robbyp.finances.domain.Account;


//@RepositoryRestResource(collectionResourceRel = "accounts", path = "accounts")
public interface AccountRepository extends MongoRepository<Account, String> {

  public Account findByName(@Param("name") String name);

  public List<Account> findByInstitution(@Param("institution") String institution);

}


@@ -871,235 +871,77 @@
 am;%0A
-import org.springframework.data.rest.core.annotation.RepositoryRestResource;%0A%0Aimport java.util.List;%0A%0Aimport com.robbyp.finances.domain.Account;%0A%0A%0A//@RepositoryRestResource(collectionResourceRel = %22accounts%22, path = %22accounts%22)
+%0Aimport java.util.List;%0A%0Aimport com.robbyp.finances.domain.Account;%0A%0A
 %0Apub
@@ -1018,23 +1018,16 @@
 g%3E %7B%0A%0A  
-public 
 Account 
@@ -1069,23 +1069,16 @@
 me);%0A%0A  
-public 
 List%3CAcc

Fix interface definition. Disgraceful, Robert.