aswi2020vldc-gitlab/src/main/java/vldc/aswi/dao/UserRepository.java @ 7f644dea
1 |
package vldc.aswi.dao; |
---|---|
2 |
|
3 |
import vldc.aswi.domain.User; |
4 |
import org.springframework.data.repository.CrudRepository; |
5 |
import org.springframework.stereotype.Repository; |
6 |
|
7 |
/**
|
8 |
* Repository for domain User.
|
9 |
*/
|
10 |
@Repository
|
11 |
public interface UserRepository extends CrudRepository<User, Long> { |
12 |
|
13 |
/**
|
14 |
* Find User by his ID.
|
15 |
* @param Id - User Id.
|
16 |
* @return User if ID is present in database.
|
17 |
*/
|
18 |
User getById(Long Id); |
19 |
}
|
- « Předchozí
- 1
- …
- 5
- 6
- 7
- Další »