blob: ee5fd403fb82c9f4d626debb7453d61c387064ed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package nu.xss.jpa.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class AbstractAutoIdEntity<K> extends AbstractEntity<K> {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private K id;
@Override
public K getId() {
return id;
}
@Override
public void setId(K id) {
this.id = id;
}
}
|