You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
413 B
25 lines
413 B
package com.nbaxp.Entities;
|
|
|
|
import javax.persistence.Id;
|
|
import javax.persistence.MappedSuperclass;
|
|
import java.util.UUID;
|
|
|
|
@MappedSuperclass
|
|
public abstract class BaseEntity {
|
|
@Id
|
|
private String id;
|
|
|
|
public BaseEntity()
|
|
{
|
|
this.id= UUID.randomUUID().toString();
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
}
|