Revize 93fff090
Přidáno uživatelem Vojtěch Danišík před asi 4 roky(ů)
src/main/java/vldc/aswi/domain/Operator.java | ||
---|---|---|
6 | 6 |
import vldc.aswi.domain.parameter.Parameter; |
7 | 7 |
import vldc.aswi.domain.parameter.ParameterInConfiguration; |
8 | 8 |
|
9 |
import javax.persistence.Column; |
|
10 |
import javax.persistence.Entity; |
|
11 |
import javax.persistence.ManyToMany; |
|
12 |
import javax.persistence.OneToMany; |
|
9 |
import javax.persistence.*; |
|
13 | 10 |
import java.util.List; |
14 | 11 |
|
15 | 12 |
/** |
... | ... | |
26 | 23 |
private String name; |
27 | 24 |
|
28 | 25 |
/** List of parameters which allowing this operator to be used. */ |
29 |
@ManyToMany(mappedBy = "operators") |
|
26 |
@ManyToMany(mappedBy = "operators", cascade = {CascadeType.ALL})
|
|
30 | 27 |
private List<Parameter> parameters; |
31 | 28 |
|
32 | 29 |
/** List of parametersInConfiguration using this operator. */ |
33 |
@OneToMany(mappedBy = "operator") |
|
30 |
@OneToMany(mappedBy = "operator", cascade = {CascadeType.ALL})
|
|
34 | 31 |
private List<ParameterInConfiguration> parametersInConfiguration; |
35 | 32 |
|
36 | 33 |
/** |
... | ... | |
40 | 37 |
public Operator(String name) { |
41 | 38 |
this.setName(name); |
42 | 39 |
} |
40 |
|
|
41 |
@Override |
|
42 |
public boolean equals(Object obj) { |
|
43 |
return super.equals(obj); |
|
44 |
} |
|
43 | 45 |
} |
Také k dispozici: Unified diff
re #7886 Adding + Editing parameters in assembly (only logic + pushing into database, which is not tested -> need JS implementation for adding new parameter).
Updated hibernate dialect from oracle 10 to oracle 12c.
Equals method comparing domain by id.