Projekt

Obecné

Profil

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

    
3
import lombok.Data;
4
import lombok.EqualsAndHashCode;
5
import lombok.NoArgsConstructor;
6
import vldc.aswi.domain.Assembly;
7
import vldc.aswi.domain.EntityParent;
8

    
9
import javax.persistence.Entity;
10
import javax.persistence.FetchType;
11
import javax.persistence.JoinColumn;
12
import javax.persistence.ManyToOne;
13

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

    
23
    /** Specific parameter which can use this value. */
24
    @ManyToOne(fetch = FetchType.LAZY)
25
    @JoinColumn(name = "parametr_id")
26
    private Parameter parameter;
27

    
28
    /** Value that can be used in specific parameter. */
29
    private String value;
30

    
31
    /**
32
     * Constructor.
33
     * @param value - Value that can be used in specific parameter.
34
     */
35
    public ParameterValue(String value) {
36
        this.setValue(value);
37
    }
38
}
(4-4/4)