Projekt

Obecné

Profil

Stáhnout (1.16 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.Column;
10
import javax.persistence.Entity;
11
import javax.persistence.ManyToMany;
12
import java.util.List;
13

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

    
23
    /** Name of function. */
24
    @Column(name = "nazev")
25
    private String name;
26

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

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

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

    
43
    @Override
44
    public String toString() {
45
        return "";
46
    }
47
}
(4-4/8)