Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @MappedSuperclass
- public abstract class BaseEntity {
- @Id
- @GeneratedValue(generator = "uuid-string")
- @GenericGenerator(name = "uuid-string", strategy = "org.hibernate.id.UUIDGenerator")
- @Column(name = "id", nullable = false, unique = true, updatable = false)
- private String id;
- public BaseEntity() {
- }
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement