You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
690 B
25 lines
690 B
package sut.edu.zyp.dormitory.manage.repository;
|
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
|
|
import sut.edu.zyp.dormitory.manage.entity.BuildingEntity;
|
|
|
|
/**
|
|
* 楼宇存储服务
|
|
*
|
|
* @author zyp
|
|
* @version 0.0.1
|
|
* @since 0.0.1
|
|
*/
|
|
@RepositoryRestResource(collectionResourceRel = "building", path = "building")
|
|
public interface BuildingRepository extends PagingAndSortingRepository<BuildingEntity, String> {
|
|
|
|
/**
|
|
* 楼宇信息
|
|
*
|
|
* @param name 楼宇名称
|
|
* @return 楼宇信息
|
|
*/
|
|
BuildingEntity findByName(String name);
|
|
}
|