1
|
package vldc.aswi.domain;
|
2
|
|
3
|
import javax.persistence.GeneratedValue;
|
4
|
import javax.persistence.GenerationType;
|
5
|
import javax.persistence.Id;
|
6
|
import javax.persistence.MappedSuperclass;
|
7
|
|
8
|
import lombok.Data;
|
9
|
|
10
|
/**
|
11
|
* Class which is extended for all domain entities containing common attributes.
|
12
|
*/
|
13
|
@MappedSuperclass
|
14
|
@Data
|
15
|
public class EntityParent {
|
16
|
|
17
|
/** Specific identificator for every table. */
|
18
|
@Id
|
19
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
20
|
private Long id;
|
21
|
|
22
|
@Override
|
23
|
public String toString() {
|
24
|
return "";
|
25
|
}
|
26
|
}
|