Projekt

Obecné

Profil

Stáhnout (1.03 KB) Statistiky
| Větev: | Revize:
1
package vldc.aswi.domain;
2

    
3
import lombok.Data;
4
import lombok.EqualsAndHashCode;
5
import lombok.NoArgsConstructor;
6
import vldc.aswi.domain.parameter.Parameter;
7
import vldc.aswi.domain.parameter.ParameterInConfiguration;
8

    
9
import javax.persistence.Entity;
10
import javax.persistence.ManyToMany;
11
import java.util.List;
12

    
13
/**
14
 * Domain entity representing Function in application.
15
 */
16
@Entity(name = "Funkce")
17
@Data
18
@EqualsAndHashCode(callSuper = true)
19
@NoArgsConstructor
20
public class Function extends EntityParent {
21

    
22
    /** Name of function. */
23
    private String name;
24

    
25
    /** List of parameters, which defined that this function can be used. */
26
    @ManyToMany(mappedBy = "functions")
27
    private List<Parameter> parameters;
28

    
29
    /** List of parametersInConfigurations, which using this function. */
30
    @ManyToMany(mappedBy = "functions")
31
    private List<ParameterInConfiguration> parametersInConfigurations;
32

    
33
    /**
34
     * Constructor.
35
     * @param name - Name of function.
36
     */
37
    public Function(String name) {
38
        this.setName(name);
39
    }
40
}
(4-4/8)