release: 批量添加serialVersionUID

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

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

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

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

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

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

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

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

@ -6,6 +6,7 @@ import lombok.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Author: yawei.huang
@ -22,8 +23,9 @@ import javax.persistence.Table;
@Builder
@Entity
@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
@Table(name = "tb_bank")
public class Bank implements Serializable {
private static final long serialVersionUID = 3537265091264226956L;
@Id
private String id;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save