Projekt

Obecné

Profil

Stáhnout (869 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.EntityParent;
7

    
8
import javax.persistence.*;
9

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

    
19
    /** Specific parameter which can use this value. */
20
    @ManyToOne(fetch = FetchType.LAZY)
21
    @JoinColumn(name = "parametr_id")
22
    private Parameter parameter;
23

    
24
    /** Value that can be used in specific parameter. */
25
    @Column(name = "hodnota")
26
    private String value;
27

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