Projekt

Obecné

Profil

Stáhnout (947 Bajtů) Statistiky
| Větev: | Revize:
1
package vldc.aswi.dao;
2

    
3
import org.springframework.data.repository.CrudRepository;
4
import org.springframework.stereotype.Repository;
5
import vldc.aswi.domain.Configuration;
6
import vldc.aswi.domain.User;
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

    
30
    /**
31
     * Get list of configurations by user.
32
     * @param user - user.
33
     * @return List of configurations.
34
     */
35
    List<Configuration> getByUserEquals(User user);
36
}
(2-2/7)