|
|
@@ -39,7 +39,13 @@ import java.util.Set;
|
|
|
@NoArgsConstructor
|
|
|
@Builder
|
|
|
@ApiModel(value = "用户", description = "用户")
|
|
|
-public class User extends BaseEntity implements Serializable {
|
|
|
+public class User extends BaseEntityNoID implements Serializable {
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+// @GeneratedValue(generator = "snowFlakeId")
|
|
|
+// @GenericGenerator(name = "snowFlakeId", strategy = "com.izouma.nineth.utils.SnowflakeIdGenerator")
|
|
|
+ private Long id;
|
|
|
|
|
|
// @Pattern(regexp = Constants.Regex.USERNAME)
|
|
|
@Size(min = 1, max = 50)
|