changed "article" to "research"
to be more more general
This commit is contained in:
		@ -9,6 +9,8 @@ package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
			
		||||
 *
 | 
			
		||||
 ******************************************************/
 | 
			
		||||
public enum PaperType {
 | 
			
		||||
    article,
 | 
			
		||||
    slides,
 | 
			
		||||
    Article,
 | 
			
		||||
    Paper,
 | 
			
		||||
    Book,
 | 
			
		||||
    BookChapter,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@ package ovh.herisson.Clyde.Tables.ScientificPublications;
 | 
			
		||||
 * @author Maxime Bartha
 | 
			
		||||
 * @scope Extension Publications scientifiques
 | 
			
		||||
 *
 | 
			
		||||
 * Article entity
 | 
			
		||||
 * Research entity
 | 
			
		||||
 *
 | 
			
		||||
 ******************************************************/
 | 
			
		||||
import jakarta.persistence.*;
 | 
			
		||||
@ -16,14 +16,13 @@ import lombok.Setter;
 | 
			
		||||
import org.hibernate.annotations.CreationTimestamp;
 | 
			
		||||
import org.hibernate.annotations.OnDelete;
 | 
			
		||||
import org.hibernate.annotations.OnDeleteAction;
 | 
			
		||||
import ovh.herisson.Clyde.Tables.User;
 | 
			
		||||
import java.util.Date;
 | 
			
		||||
@Getter
 | 
			
		||||
@Setter
 | 
			
		||||
@NoArgsConstructor
 | 
			
		||||
@AllArgsConstructor
 | 
			
		||||
@Entity
 | 
			
		||||
public class Article {
 | 
			
		||||
public class Research {
 | 
			
		||||
    @Id
 | 
			
		||||
    @GeneratedValue(strategy = GenerationType.AUTO)
 | 
			
		||||
    private Long id;
 | 
			
		||||
@ -22,7 +22,7 @@ import org.hibernate.annotations.OnDeleteAction;
 | 
			
		||||
@Setter
 | 
			
		||||
@NoArgsConstructor
 | 
			
		||||
@AllArgsConstructor
 | 
			
		||||
public class ArticleCoAuthors {
 | 
			
		||||
public class ResearchCoAuthors {
 | 
			
		||||
 | 
			
		||||
    @ManyToOne(fetch = FetchType.EAGER)
 | 
			
		||||
    @JoinColumn(name = "Researcher")
 | 
			
		||||
@ -31,5 +31,5 @@ public class ArticleCoAuthors {
 | 
			
		||||
    @ManyToOne(fetch = FetchType.EAGER)
 | 
			
		||||
    @OnDelete(action = OnDeleteAction.CASCADE)
 | 
			
		||||
    @JoinColumn(name = "Article")
 | 
			
		||||
    private Article article;
 | 
			
		||||
    private Research research;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user