活动子系统问题修改

This commit is contained in:
chuyan 2020-02-14 17:15:29 +08:00 committed by yourtree
parent 60356b46fa
commit e34f87b01c
3 changed files with 5 additions and 19 deletions

View File

@ -2,10 +2,6 @@ package com.codesdream.ase.model.activity;
import com.codesdream.ase.model.permission.User; import com.codesdream.ase.model.permission.User;
import lombok.Data; import lombok.Data;
import org.dom4j.QName;
import org.hibernate.annotations.CollectionId;
import org.hibernate.annotations.WhereJoinTable;
import org.springframework.context.annotation.EnableMBeanExport;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;
@ -14,23 +10,18 @@ import java.util.Set;
@Data @Data
@Entity @Entity
@Table(name = "activity", @Table(name = "activity")
indexes = {
@Index(name = "act_index1", columnList = "title", unique = true),
@Index(name = "act_index2", columnList = "creator")
}
)
public class Activity { public class Activity {
@Id @Id
@GeneratedValue(strategy = GenerationType.AUTO) @GeneratedValue(strategy = GenerationType.AUTO)
private int id; private int id;
//活动标题 //活动标题
@Column(nullable = false, unique = true) @Column(name = "title", nullable = false, unique = true)
private String title; private String title;
//创建人 //创建人
@Column(nullable = false) @Column(name = "creator", nullable = false)
private String creator; private String creator;
//活动类型 //活动类型

View File

@ -11,12 +11,7 @@ import java.util.Set;
@Data @Data
@Entity @Entity
@Table(name = "report", @Table(name = "report")
indexes = {
@Index(name = "report_index1", columnList = "title"),
@Index(name = "report_index2", columnList = "creator")
}
)
public class Report { public class Report {
@Id @Id

View File

@ -7,7 +7,7 @@ spring.thymeleaf.encoding=UTF-8
spring.jpa.generate-ddl=false spring.jpa.generate-ddl=false
spring.jpa.show-sql=true spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.ddl-auto=create
spring.jooq.sql-dialect=org.hibernate.dialect.MySQL5InnoDBDialect spring.jooq.sql-dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.open-in-view=true spring.jpa.open-in-view=true
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true