aswi2020vldc-gitlab/src/main/java/vldc/aswi/dao/FunctionRepository.java @ 21d41302
1 |
package vldc.aswi.dao; |
---|---|
2 |
|
3 |
import org.springframework.data.repository.CrudRepository; |
4 |
import org.springframework.stereotype.Repository; |
5 |
import vldc.aswi.domain.Function; |
6 |
|
7 |
/**
|
8 |
* Repository for domain Function.
|
9 |
*/
|
10 |
@Repository
|
11 |
public interface FunctionRepository extends CrudRepository<Function, Long> { |
12 |
|
13 |
/**
|
14 |
* Find Function by its ID.
|
15 |
* @param Id - Function Id.
|
16 |
* @return Function if ID is present in database.
|
17 |
*/
|
18 |
Function getById(Long Id); |
19 |
}
|