mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-22 08:36:51 +08:00
refactor: 优化拓展性
This commit is contained in:
@@ -8,7 +8,7 @@ import lombok.Setter;
|
||||
import org.apache.commons.codec.digest.DigestUtils;
|
||||
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
|
||||
import org.hswebframework.ezorm.rdb.mapping.annotation.DefaultValue;
|
||||
import org.hswebframework.web.api.crud.entity.GenericEntity;
|
||||
import org.hswebframework.web.api.crud.entity.ExtendableEntity;
|
||||
import org.hswebframework.web.api.crud.entity.RecordCreationEntity;
|
||||
import org.hswebframework.web.bean.ToString;
|
||||
import org.hswebframework.web.validator.CreateGroup;
|
||||
@@ -34,7 +34,7 @@ import jakarta.validation.constraints.NotBlank;
|
||||
indexes = @Index(name = "user_username_idx", columnList = "username", unique = true)
|
||||
)
|
||||
@Comment("用户信息")
|
||||
public class UserEntity extends GenericEntity<String> implements RecordCreationEntity {
|
||||
public class UserEntity extends ExtendableEntity<String> implements RecordCreationEntity {
|
||||
|
||||
@Column(length = 128, nullable = false)
|
||||
@NotBlank(message = "姓名不能为空", groups = CreateGroup.class)
|
||||
|
||||
11
pom.xml
11
pom.xml
@@ -80,7 +80,8 @@
|
||||
<java.module.version>17</java.module.version>
|
||||
<project.build.jdk>${java.version}</project.build.jdk>
|
||||
|
||||
<spring.boot.version>3.4.8</spring.boot.version>
|
||||
<spring.boot.version>3.4.9</spring.boot.version>
|
||||
<spring.framework.version>6.2.10</spring.framework.version>
|
||||
|
||||
<javassist.version>3.30.2-GA</javassist.version>
|
||||
|
||||
@@ -381,6 +382,14 @@
|
||||
<!-- <version>2.3.3.RELEASE</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-framework-bom</artifactId>
|
||||
<version>${spring.framework.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jsr305</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user