add lombok
This commit is contained in:
@@ -2,6 +2,8 @@ package com.imyeyu.spring.entity;
|
||||
|
||||
import com.imyeyu.spring.annotation.table.AutoUUID;
|
||||
import com.imyeyu.spring.annotation.table.Id;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 基本 UUID 实体
|
||||
@@ -9,24 +11,12 @@ import com.imyeyu.spring.annotation.table.Id;
|
||||
* @author 夜雨
|
||||
* @since 2025-02-07 12:07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class UUIDEntity extends BaseEntity implements IDEntity<String> {
|
||||
|
||||
/** ID */
|
||||
@Id
|
||||
@AutoUUID
|
||||
protected String id;
|
||||
|
||||
/**
|
||||
* 创建 UUID 实体
|
||||
*/
|
||||
public UUIDEntity() {
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user