Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
chore: change table name
Browse files Browse the repository at this point in the history
  • Loading branch information
itning committed Apr 29, 2020
1 parent bd85719 commit b5095f0
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_carousel")
@Entity(name = "mall_carousel")
public class Carousel implements Serializable {
/**
* 水平走马灯
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sport/sportsmallserver/entity/Cart.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_cart")
@Entity(name = "mall_cart")
@IdClass(CartPrimaryKey.class)
public class Cart implements Serializable {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_comment")
@Entity(name = "mall_comment")
@Table(indexes = {
@Index(name = "idx_user_id", columnList = "userId"),
@Index(name = "idx_commodity_id", columnList = "commodityId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_commodity")
@Entity(name = "mall_commodity")
@Table(indexes = {@Index(name = "idx_name", columnList = "name")})
public class Commodity implements Serializable {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_commodity_detail")
@Entity(name = "mall_commodity_detail")
public class CommodityDetail implements Serializable {
/**
* ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_commodity_type")
@Entity(name = "mall_commodity_type")
public class CommodityType implements Serializable {
/**
* 分类ID
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sport/sportsmallserver/entity/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_order")
@Entity(name = "mall_order")
public class Order implements Serializable {
/**
* 订单状态
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sport/sportsmallserver/entity/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_role")
@Entity(name = "mall_role")
public class Role implements Serializable {
/**
* 管理员ID
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sport/sportsmallserver/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @see java.io.Serializable
*/
@Data
@Entity(name = "mail_user")
@Entity(name = "mall_user")
public class User implements Serializable {
/**
* 用户名(唯一)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
spring.datasource.url=jdbc:mysql://localhost:3306/sports_mail?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=0&serverTimezone=Asia/Shanghai&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true
spring.datasource.url=jdbc:mysql://localhost:3306/sports_mall?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=0&serverTimezone=Asia/Shanghai&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=root
##########################################################
Expand Down

0 comments on commit b5095f0

Please sign in to comment.