Revize b439853d
Přidáno uživatelem Michal Linha před asi 4 roky(ů)
src/main/java/vldc/aswi/domain/parameter/ParameterInConfiguration.java | ||
---|---|---|
4 | 4 |
import lombok.EqualsAndHashCode; |
5 | 5 |
import lombok.NoArgsConstructor; |
6 | 6 |
import vldc.aswi.domain.*; |
7 |
import vldc.aswi.utils.validator.OperatorValueConstraint; |
|
8 |
|
|
7 | 9 |
import javax.persistence.*; |
8 | 10 |
import java.util.List; |
9 | 11 |
|
... | ... | |
14 | 16 |
@Data |
15 | 17 |
@EqualsAndHashCode(callSuper = true) |
16 | 18 |
@NoArgsConstructor |
19 |
@OperatorValueConstraint |
|
17 | 20 |
public class ParameterInConfiguration extends EntityParent { |
18 | 21 |
|
19 | 22 |
/** Specific configuration in which is this parameterConfiguration presented. */ |
... | ... | |
30 | 33 |
@Column(name = "hodnota_operatoru") |
31 | 34 |
private String operatorValue; |
32 | 35 |
|
33 |
/** Specific type of parameter, which represents type of entry. */ |
|
34 |
@ManyToOne(fetch=FetchType.LAZY) |
|
35 |
@JoinColumn(name = "parametr_typ_id") |
|
36 |
private ParameterType parameterType; |
|
37 |
|
|
38 | 36 |
/** Specific location in which this parameterConfiguration will be used. */ |
39 | 37 |
@ManyToOne(fetch=FetchType.LAZY) |
40 | 38 |
@JoinColumn(name = "umisteni_id") |
Také k dispozici: Unified diff
re #7881 ability to create or edit a user configuration and set or edit its basic attributes, operator value and configuration name are validated, if operator value is wrong user is redirected to main page, auto increment functionality changed to IDENTITY