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
|
import vldc.aswi.domain.Configuration;
|
7
|
|
8
|
import java.util.List;
|
9
|
|
10
|
/**
|
11
|
* Repository for domain Configuration.
|
12
|
*/
|
13
|
@Repository
|
14
|
public interface ConfigurationRepository extends CrudRepository<Configuration, Long> {
|
15
|
|
16
|
/**
|
17
|
* Find Configuration by its ID.
|
18
|
* @param Id - Configuration Id.
|
19
|
* @return Configuration if ID is present in database.
|
20
|
*/
|
21
|
Configuration getById(Long Id);
|
22
|
|
23
|
/**
|
24
|
* Get list of configurations by assembly id.
|
25
|
* @param assemblyId - ID of assembly.
|
26
|
* @return List of configurations.
|
27
|
*/
|
28
|
List<Configuration> getByAssemblyId(Long assemblyId);
|
29
|
}
|