|
|
|
@ -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;
|
|
|
|
|