aswi2020vldc-gitlab/src/main/java/vldc/aswi/dao/AssemblyRepository.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.Assembly; |
6 |
|
7 |
/**
|
8 |
* Repository for domain Assembly.
|
9 |
*/
|
10 |
@Repository
|
11 |
public interface AssemblyRepository extends CrudRepository<Assembly, Long> { |
12 |
|
13 |
/**
|
14 |
* Find Assembly by its ID.
|
15 |
* @param Id - Assembly Id.
|
16 |
* @return Assembly if ID is present in database.
|
17 |
*/
|
18 |
Assembly getById(Long Id); |
19 |
}
|