Revize ae1ff627
Přidáno uživatelem Vojtěch Danišík před asi 4 roky(ů)
src/main/java/vldc/aswi/domain/parameter/Parameter.java | ||
---|---|---|
25 | 25 |
private String nameOfSelect; |
26 | 26 |
|
27 | 27 |
/** Specific assembly, in which this parameter will be part of. */ |
28 |
@ManyToOne(fetch = FetchType.LAZY)
|
|
28 |
@ManyToOne(fetch = FetchType.EAGER)
|
|
29 | 29 |
@JoinColumn(name = "sestava_id") |
30 | 30 |
private Assembly assembly; |
31 | 31 |
|
32 | 32 |
/** Specific type of parameter, which represents type of entry. */ |
33 |
@ManyToOne(fetch=FetchType.LAZY)
|
|
33 |
@ManyToOne(fetch=FetchType.EAGER)
|
|
34 | 34 |
@JoinColumn(name = "parametr_typ_id") |
35 | 35 |
private ParameterType parameterType; |
36 | 36 |
|
... | ... | |
43 | 43 |
private int parameterOrder; |
44 | 44 |
|
45 | 45 |
/** List of parametersInConfiguration, which using this parameter. */ |
46 |
@OneToMany(mappedBy = "parameter", cascade = CascadeType.ALL)
|
|
46 |
@OneToMany(mappedBy = "parameter") |
|
47 | 47 |
private List<ParameterInConfiguration> parametersInConfiguration; |
48 | 48 |
|
49 | 49 |
/** List of parametersInConfiguration, which using this parameter. */ |
50 |
@OneToMany(mappedBy = "parameter", cascade = CascadeType.ALL)
|
|
50 |
@OneToMany(mappedBy = "parameter") |
|
51 | 51 |
private List<ParameterValue> parameterValues; |
52 | 52 |
|
53 | 53 |
/** |
54 | 54 |
* Creating new table with M:N relationship between Parameter and Location. |
55 | 55 |
* Specify which locations can be used for parameter. |
56 | 56 |
*/ |
57 |
@ManyToMany(cascade = CascadeType.PERSIST)
|
|
57 |
@ManyToMany |
|
58 | 58 |
@JoinTable( |
59 | 59 |
name = "Parametr_ma_Umisteni", |
60 | 60 |
joinColumns = @JoinColumn(name = "parametr_id"), |
... | ... | |
66 | 66 |
* Creating new table with M:N relationship between Parameter and Function. |
67 | 67 |
* Specify which functions can be used for parameter. |
68 | 68 |
*/ |
69 |
@ManyToMany(cascade = CascadeType.PERSIST)
|
|
69 |
@ManyToMany |
|
70 | 70 |
@JoinTable( |
71 | 71 |
name = "Parametr_ma_Funkce", |
72 | 72 |
joinColumns = @JoinColumn(name = "parametr_id"), |
... | ... | |
78 | 78 |
* Creating new table with M:N relationship between Parameter and Operator. |
79 | 79 |
* Specify which operators can be used for parameter. |
80 | 80 |
*/ |
81 |
@ManyToMany(cascade = CascadeType.PERSIST)
|
|
81 |
@ManyToMany |
|
82 | 82 |
@JoinTable( |
83 | 83 |
name = "Parametr_ma_Operator", |
84 | 84 |
joinColumns = @JoinColumn(name = "parametr_id"), |
Také k dispozici: Unified diff
re #7988 Parameters are now deleted from assembly + deleted parametersInConfiguration, which was created by deleted parameter.
re #7989 Added / deleted parameters are now instantly showed in page (refreshing not needed).