修改期刊曲库

main
JH 10 months ago
parent 135ff29a05
commit 2fda1e8487

@ -22,8 +22,7 @@ import java.time.LocalDateTime;
@Entity
@DynamicInsert
@DynamicUpdate
// @Table(name="tb_journal")
@Table(name="tb_journal_copy1")
@Table(name="tb_journal")
@EntityListeners(AuditingEntityListener.class)
public class Journal implements Serializable{

@ -1,17 +1,21 @@
package com.luoo.music.pojo;
import lombok.*;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.proxy.HibernateProxy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Getter
@ -84,12 +88,6 @@ public class Tag implements Serializable {
@LastModifiedDate
private LocalDateTime updateTime;
@ManyToMany(mappedBy = "tags")
private List<Journal> journals = new ArrayList<>();
@ManyToMany(mappedBy = "tags")
private List<Song> songs = new ArrayList<>();
@Override
public final boolean equals(Object o) {
if (this == o) return true;

Loading…
Cancel
Save