release: 批量添加serialVersionUID

release-2024-08-08
huangyw 4 months ago
parent bd46212a2d
commit 52798fedd1

@ -1,6 +1,7 @@
package com.luoo.user; package com.luoo.user;
import com.spring4all.mongodb.EnableMongoPlus; import com.spring4all.mongodb.EnableMongoPlus;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
@ -26,6 +27,7 @@ import java.net.UnknownHostException;
@EnableJpaAuditing @EnableJpaAuditing
@EnableAsync @EnableAsync
@EnableScheduling @EnableScheduling
@MapperScan("com.luoo.user.mapper")
public class UserApplication { public class UserApplication {
static Logger logger= LoggerFactory.getLogger(UserApplication.class); static Logger logger= LoggerFactory.getLogger(UserApplication.class);
public static void main(String[] args) throws UnknownHostException { public static void main(String[] args) throws UnknownHostException {

@ -13,6 +13,7 @@ import java.io.Serializable;
@Table(name="tb_admin") @Table(name="tb_admin")
public class Admin implements Serializable{ public class Admin implements Serializable{
private static final long serialVersionUID = -8216629985740378841L;
@Id @Id
private String id;//ID private String id;//ID

@ -25,6 +25,7 @@ import java.io.Serializable;
@Table(name="tb_artist_info") @Table(name="tb_artist_info")
public class ArtistInfo implements Serializable { public class ArtistInfo implements Serializable {
private static final long serialVersionUID = 6136934719384823885L;
@Id @Id
@ApiModelProperty("id") @ApiModelProperty("id")
private String id; private String id;

@ -35,6 +35,7 @@ import java.time.LocalDateTime;
@Table(name="tb_artist_register") @Table(name="tb_artist_register")
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class ArtistRegister implements Serializable { public class ArtistRegister implements Serializable {
private static final long serialVersionUID = 4725885363604430067L;
@Id @Id
@ApiModelProperty("id") @ApiModelProperty("id")
private String id; private String id;

@ -25,6 +25,7 @@ import java.io.Serializable;
@Table(name="tb_artist_responsible") @Table(name="tb_artist_responsible")
public class ArtistResponsible implements Serializable { public class ArtistResponsible implements Serializable {
private static final long serialVersionUID = -1074378102639084669L;
@Id @Id
@ApiModelProperty("id") @ApiModelProperty("id")
private String id; private String id;

@ -25,6 +25,7 @@ import java.io.Serializable;
@Table(name="tb_artist_user") @Table(name="tb_artist_user")
public class ArtistUser implements Serializable { public class ArtistUser implements Serializable {
private static final long serialVersionUID = 8633568684567153421L;
@Id @Id
@ApiModelProperty("id") @ApiModelProperty("id")
private String id; private String id;

@ -25,6 +25,7 @@ import java.io.Serializable;
@Table(name="tb_band_info") @Table(name="tb_band_info")
public class BandInfo implements Serializable { public class BandInfo implements Serializable {
private static final long serialVersionUID = 2262920533012381305L;
@Id @Id
@ApiModelProperty("id") @ApiModelProperty("id")
private String id; private String id;

@ -6,6 +6,7 @@ import lombok.*;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import java.io.Serializable;
/** /**
* @Author: yawei.huang * @Author: yawei.huang
@ -22,8 +23,9 @@ import javax.persistence.Table;
@Builder @Builder
@Entity @Entity
@Table(name = "tb_band_operator") @Table(name = "tb_band_operator")
public class BandOperator { public class BandOperator implements Serializable {
private static final long serialVersionUID = -7680069722771770686L;
/** /**
* *
*/ */

@ -17,6 +17,7 @@ import java.io.Serializable;
@Entity @Entity
@Table(name = "tb_bank") @Table(name = "tb_bank")
public class Bank implements Serializable { public class Bank implements Serializable {
private static final long serialVersionUID = 3537265091264226956L;
@Id @Id
private String id; private String id;

@ -10,6 +10,7 @@ import java.util.Date;
@Data @Data
public class Comment implements Serializable { public class Comment implements Serializable {
private static final long serialVersionUID = 3755270248711522255L;
@Id @Id
private String _id; private String _id;
// 评论内容 // 评论内容

@ -5,12 +5,14 @@ import lombok.Data;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
@Data @Data
public class CommentHis { public class CommentHis implements Serializable {
private static final long serialVersionUID = 6531637004005968639L;
@Id @Id
private String _id; private String _id;

@ -11,6 +11,7 @@ import java.io.Serializable;
@IdClass(Friend.class) @IdClass(Friend.class)
public class Friend implements Serializable { public class Friend implements Serializable {
private static final long serialVersionUID = 3715296404812596918L;
@Id @Id
private String userid; private String userid;

@ -2,6 +2,8 @@ package com.luoo.user.pojo;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
import javax.persistence.Column; import javax.persistence.Column;
@ -34,8 +36,9 @@ import org.springframework.format.annotation.DateTimeFormat;
@DynamicUpdate @DynamicUpdate
@Table(name = "tb_lottery") @Table(name = "tb_lottery")
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class Lottery { public class Lottery implements Serializable {
private static final long serialVersionUID = -4752327525558067397L;
@Id @Id
@Size(max = 20) @Size(max = 20)
@Column(name = "id", nullable = false, length = 20) @Column(name = "id", nullable = false, length = 20)

@ -2,6 +2,8 @@ package com.luoo.user.pojo;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
@ -28,8 +30,9 @@ import org.springframework.format.annotation.DateTimeFormat;
@DynamicUpdate @DynamicUpdate
@Table(name = "tb_lottery_region") @Table(name = "tb_lottery_region")
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class LotteryRegion { public class LotteryRegion implements Serializable {
private static final long serialVersionUID = -5624272399971443902L;
@Id @Id
@Size(max = 20) @Size(max = 20)
@Column(name = "id", nullable = false, length = 20) @Column(name = "id", nullable = false, length = 20)

@ -27,6 +27,7 @@ import java.io.Serializable;
@Table(name = "tb_membership_code") @Table(name = "tb_membership_code")
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class MembershipCode implements Serializable { public class MembershipCode implements Serializable {
private static final long serialVersionUID = -4571416340646557927L;
@Id @Id
@Size(max = 20) @Size(max = 20)
@Column(name = "id", nullable = false, length = 20) @Column(name = "id", nullable = false, length = 20)

@ -11,6 +11,7 @@ import java.io.Serializable;
@IdClass(NoFriend.class) @IdClass(NoFriend.class)
public class NoFriend implements Serializable { public class NoFriend implements Serializable {
private static final long serialVersionUID = -1888913593663166700L;
@Id @Id
private String userid; private String userid;

@ -12,6 +12,7 @@ import java.util.Date;
public class PublicationLike implements Serializable { public class PublicationLike implements Serializable {
private static final long serialVersionUID = 6862134241746672070L;
@Id @Id
private String _id; private String _id;

@ -34,6 +34,7 @@ import java.io.Serializable;
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class Region implements Serializable { public class Region implements Serializable {
private static final long serialVersionUID = 6196396812787555259L;
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false) @Column(name = "id", nullable = false)

@ -35,6 +35,8 @@ import org.springframework.format.annotation.DateTimeFormat;
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class TaskPoint implements Serializable { public class TaskPoint implements Serializable {
private static final long serialVersionUID = 4796531460794327571L;
@Id @Id
@Size(max = 20) @Size(max = 20)
@Column(name = "id", nullable = false, length = 20) @Column(name = "id", nullable = false, length = 20)

@ -23,6 +23,7 @@ import java.time.Instant;
@Entity @Entity
@Table(name = "tb_user_bank") @Table(name = "tb_user_bank")
public class UserBank implements Serializable { public class UserBank implements Serializable {
private static final long serialVersionUID = 6078233755643850781L;
@Id @Id
private String id; private String id;

@ -26,6 +26,9 @@ import java.io.Serializable;
@Table(name = "tb_user_point_log") @Table(name = "tb_user_point_log")
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class UserPointLog implements Serializable { public class UserPointLog implements Serializable {
private static final long serialVersionUID = 3906598904133140275L;
@Id @Id
@Size(max = 20) @Size(max = 20)
@Column(name = "id", nullable = false, length = 20) @Column(name = "id", nullable = false, length = 20)

@ -30,6 +30,7 @@ import java.util.Date;
@Table(name="tb_user_process") @Table(name="tb_user_process")
public class UserProcess implements Serializable { public class UserProcess implements Serializable {
private static final long serialVersionUID = -5139481052903059965L;
@Id @Id
@ApiModelProperty("id") @ApiModelProperty("id")
private String id; private String id;

@ -26,6 +26,7 @@ import java.time.LocalDateTime;
@Table(name = "tb_user_real_name") @Table(name = "tb_user_real_name")
public class UserRealName implements Serializable { public class UserRealName implements Serializable {
private static final long serialVersionUID = 7951626010139804621L;
/** /**
* id * id
*/ */

@ -24,6 +24,7 @@ import java.math.BigDecimal;
@Entity @Entity
@Table(name = "tb_withdraw") @Table(name = "tb_withdraw")
public class Withdraw implements Serializable { public class Withdraw implements Serializable {
private static final long serialVersionUID = 3041693977260169199L;
@Id @Id
private String id; private String id;

Loading…
Cancel
Save