aswi2020vldc-gitlab/src/main/java/vldc/aswi/domain/EntityParent.java @ 26342eaf
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 |
@Id
|
18 |
@GeneratedValue(strategy = GenerationType.AUTO) |
19 |
private Long id; |
20 |
}
|