修改期刊曲库

main
JH 10 months ago
parent 135ff29a05
commit 2fda1e8487

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

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

Loading…
Cancel
Save