| 1 |
|
package rest.db1; |
| 2 |
|
|
| 3 |
|
import java.util.List; |
| 4 |
|
|
| 5 |
|
import org.springframework.data.repository.PagingAndSortingRepository; |
| 6 |
|
import org.springframework.data.repository.query.Param; |
| 7 |
|
import org.springframework.data.rest.core.annotation.RepositoryRestResource; |
| 8 |
|
|
| 9 |
|
@RepositoryRestResource(collectionResourceRel = "account1", path = "account1") |
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
| 10 |
|
public interface FirstAccountRepository extends PagingAndSortingRepository<FirstAccount, Long> { |
| 11 |
|
List<FirstAccount> findByName(@Param("name") String name); |
| 12 |
|
|
| 13 |
|
} |